diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-07-30 10:58:09 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-07-30 10:58:09 +0000 |
commit | 980864de081536ac8b5bdb053abea622da72ad75 (patch) | |
tree | 7e24fec6d4d1f248640d32aeda54227cddab000a /coreutils/dd.c | |
parent | 2b03e5ef31c27b775739f4db7179d40de26f15c4 (diff) | |
download | busybox-w32-980864de081536ac8b5bdb053abea622da72ad75.tar.gz busybox-w32-980864de081536ac8b5bdb053abea622da72ad75.tar.bz2 busybox-w32-980864de081536ac8b5bdb053abea622da72ad75.zip |
dd: use unsigned printf specifier for # of blocks
Diffstat (limited to 'coreutils/dd.c')
-rw-r--r-- | coreutils/dd.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/coreutils/dd.c b/coreutils/dd.c index b7979d62f..3b4b1d785 100644 --- a/coreutils/dd.c +++ b/coreutils/dd.c | |||
@@ -38,8 +38,9 @@ struct globals { | |||
38 | 38 | ||
39 | static void dd_output_status(int ATTRIBUTE_UNUSED cur_signal) | 39 | static void dd_output_status(int ATTRIBUTE_UNUSED cur_signal) |
40 | { | 40 | { |
41 | fprintf(stderr, "%"OFF_FMT"d+%"OFF_FMT"d records in\n" | 41 | /* Deliberately using %u, not %d */ |
42 | "%"OFF_FMT"d+%"OFF_FMT"d records out\n", | 42 | fprintf(stderr, "%"OFF_FMT"u+%"OFF_FMT"u records in\n" |
43 | "%"OFF_FMT"u+%"OFF_FMT"u records out\n", | ||
43 | G.in_full, G.in_part, | 44 | G.in_full, G.in_part, |
44 | G.out_full, G.out_part); | 45 | G.out_full, G.out_part); |
45 | } | 46 | } |