projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b03e5e
)
dd: use unsigned printf specifier for # of blocks
author
Denis Vlasenko
<vda.linux@googlemail.com>
Mon, 30 Jul 2007 10:58:09 +0000
(10:58 -0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Mon, 30 Jul 2007 10:58:09 +0000
(10:58 -0000)
coreutils/dd.c
patch
|
blob
|
history
diff --git
a/coreutils/dd.c
b/coreutils/dd.c
index b7979d62f90292969c289a3cedfd48680147d762..3b4b1d785a985cd80b8da8eaf4a34fee2bf8aba3 100644
(file)
--- a/
coreutils/dd.c
+++ b/
coreutils/dd.c
@@
-38,8
+38,9
@@
struct globals {
static void dd_output_status(int ATTRIBUTE_UNUSED cur_signal)
{
- fprintf(stderr, "%"OFF_FMT"d+%"OFF_FMT"d records in\n"
- "%"OFF_FMT"d+%"OFF_FMT"d records out\n",
+ /* Deliberately using %u, not %d */
+ fprintf(stderr, "%"OFF_FMT"u+%"OFF_FMT"u records in\n"
+ "%"OFF_FMT"u+%"OFF_FMT"u records out\n",
G.in_full, G.in_part,
G.out_full, G.out_part);
}