[PATCH] tailf: fix printf format

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



ssize_t types are shown with %zd, not %ld.

Signed-off-by: Mike Frysinger <vapier@xxxxxxxxxx>
---
 text-utils/tailf.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/text-utils/tailf.c b/text-utils/tailf.c
index ec6e1c4..75998ce 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);
-- 
1.6.5.2

--
To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux