@cryptotaxi247 / netdata-1 / commits / 7cb9de5be

fix format string signness - again

Costa Tsaousis (ktsaou) committed Jan 28, 2017 at 04:35 UTC 7cb9de5be23b49d10e8f3b34469cc9830167cfe8
1 file changed +1 -1
src/procfile.c
+1 -1
@@ -285,7 +285,7 @@ procfile *procfile_readall(procfile *ff) {
285 ff->size += PROCFILE_INCREMENT_BUFFER;
286 }
287
288 - debug(D_PROCFILE, "Reading file '%s', from position %ld with length %zd", procfile_filename(ff), s, ff->size - s);
288 + debug(D_PROCFILE, "Reading file '%s', from position %zd with length %zd", procfile_filename(ff), s, (ssize_t)(ff->size - s));
289 r = read(ff->fd, &ff->data[s], ff->size - s);
290 if(unlikely(r == -1)) {
291 if(unlikely(!(ff->flags & PROCFILE_FLAG_NO_ERROR_ON_FILE_IO))) error(PF_PREFIX ": Cannot read from file '%s'", procfile_filename(ff));