From: Nathan Scott Date: Fri, 30 Apr 2004 03:20:25 +0000 (+0000) Subject: Fix printf format for bytes read/written output. X-Git-Tag: v2.7.0~107 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c5ffb35c79dfc423401dbd08de1633b953879dca;p=thirdparty%2Fxfsprogs-dev.git Fix printf format for bytes read/written output. --- 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));