From c45797121346688e3090fd54c11c36cfb19ea7e4 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 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); -- 2.39.5