From 3f63130b50f760848cfc781f2a93de317d58bdd2 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Fri, 20 Nov 2009 21:41:14 -0500 Subject: [PATCH] tailf: fix printf format ssize_t types are shown with %zd, not %ld. Reviewed-by: WANG Cong Signed-off-by: Mike Frysinger --- text-utils/tailf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/text-utils/tailf.c b/text-utils/tailf.c index 6a76ef45..b46a2fd9 100644 --- a/text-utils/tailf.c +++ b/text-utils/tailf.c @@ -105,7 +105,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); -- 2.39.5