]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
Fix printf format for bytes read/written output.
authorNathan Scott <nathans@sgi.com>
Fri, 30 Apr 2004 03:20:25 +0000 (03:20 +0000)
committerNathan Scott <nathans@sgi.com>
Fri, 30 Apr 2004 03:20:25 +0000 (03:20 +0000)
io/pread.c
io/pwrite.c

index 488b7c2a47ad46c0daf33609041108618818e002..0027d161209ef5d84dae818fc0c5abeca06b0ec0 100644 (file)
@@ -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));
index bc8648c049fc655992e09b45a85b16873ae084bb..51ab58188f979d4f203f56c49a31c309e0b0e64d 100644 (file)
@@ -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));