X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=netdata.git;a=blobdiff_plain;f=src%2Fprocfile.c;h=e493bff98ba98187955b4ed8bf9ab0eb7adff4b4;hp=736a35de95b1d294b86547044f37419f8cf143d8;hb=47953b26e118df0e23909d222ee788fbd264e254;hpb=513f97235a486e16817d290d68183c2b346b3674 diff --git a/src/procfile.c b/src/procfile.c index 736a35de..e493bff9 100644 --- a/src/procfile.c +++ b/src/procfile.c @@ -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));