]> err.no Git - util-linux/commitdiff
tailf: fix printf format
authorMike Frysinger <vapier@gentoo.org>
Sat, 21 Nov 2009 02:41:14 +0000 (21:41 -0500)
committerKarel Zak <kzak@redhat.com>
Mon, 30 Nov 2009 12:57:11 +0000 (13:57 +0100)
ssize_t types are shown with %zd, not %ld.

Reviewed-by: WANG Cong <xiyou.wangcong@gmail.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
text-utils/tailf.c

index 6a76ef4539cb7dd939b7177faf6aaa5f398e4cc1..b46a2fd979410424836d27e0475719f686fc46fe 100644 (file)
@@ -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);