From: Mike Frysinger Date: Sat, 21 Nov 2009 02:41:14 +0000 (-0500) Subject: tailf: fix printf format X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c45797121346688e3090fd54c11c36cfb19ea7e4;p=util-linux tailf: fix printf format ssize_t types are shown with %zd, not %ld. Reviewed-by: WANG Cong Signed-off-by: Mike Frysinger --- diff --git a/text-utils/tailf.c b/text-utils/tailf.c index ec6e1c46..75998ce7 100644 --- a/text-utils/tailf.c +++ b/text-utils/tailf.c @@ -106,7 +106,7 @@ roll_file(const char *filename, off_t *size) while ((rc = read(fd, buf, sizeof(buf))) > 0) { wc = write(STDOUT_FILENO, buf, rc); if (rc != wc) - warnx(_("incomplete write to \"%s\" (written %ld, expected %ld)\n"), + warnx(_("incomplete write to \"%s\" (written %zd, expected %zd)\n"), filename, wc, rc); } fflush(stdout);