]> arthur.barton.de Git - netdata.git/blobdiff - src/procfile.c
fix compilation warnings for 32bit machines
[netdata.git] / src / procfile.c
index 736a35de95b1d294b86547044f37419f8cf143d8..e493bff98ba98187955b4ed8bf9ab0eb7adff4b4 100644 (file)
@@ -285,7 +285,7 @@ procfile *procfile_readall(procfile *ff) {
             ff->size += PROCFILE_INCREMENT_BUFFER;
         }
 
-        debug(D_PROCFILE, "Reading file '%s', from position %ld with length %lu", procfile_filename(ff), s, ff->size - s);
+        debug(D_PROCFILE, "Reading file '%s', from position %ld with length %zu", procfile_filename(ff), s, ff->size - s);
         r = read(ff->fd, &ff->data[s], ff->size - s);
         if(unlikely(r == -1)) {
             if(unlikely(!(ff->flags & PROCFILE_FLAG_NO_ERROR_ON_FILE_IO))) error(PF_PREFIX ": Cannot read from file '%s'", procfile_filename(ff));