From c5ffb35c79dfc423401dbd08de1633b953879dca Mon Sep 17 00:00:00 2001 From: Nathan Scott Date: Fri, 30 Apr 2004 03:20:25 +0000 Subject: [PATCH] Fix printf format for bytes read/written output. --- io/pread.c | 4 ++-- io/pwrite.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/io/pread.c b/io/pread.c index 488b7c2a4..0027d1612 100644 --- a/io/pread.c +++ b/io/pread.c @@ -196,8 +196,8 @@ pread_f( gettimeofday(&t2, NULL); t2 = tsub(t2, t1); - printf(_("read %ld/%ld bytes at offset %lld\n"), - (long)total, (long)count, (long long)offset); + printf(_("read %lld/%lld bytes at offset %lld\n"), + total, count, (long long)offset); cvtstr((double)total, s1, sizeof(s1)); cvtstr(tdiv((double)total, t2), s2, sizeof(s2)); timestr(&t2, ts, sizeof(ts)); diff --git a/io/pwrite.c b/io/pwrite.c index bc8648c04..51ab58188 100644 --- a/io/pwrite.c +++ b/io/pwrite.c @@ -178,8 +178,8 @@ pwrite_f( gettimeofday(&t2, NULL); t2 = tsub(t2, t1); - printf(_("wrote %ld/%ld bytes at offset %lld\n"), - (long)total, (long)count, (long long)offset); + printf(_("wrote %lld/%lld bytes at offset %lld\n"), + total, count, (long long)offset); cvtstr((double)total, s1, sizeof(s1)); cvtstr(tdiv((double)total, t2), s2, sizeof(s2)); timestr(&t2, ts, sizeof(ts)); -- 2.47.2