summaryrefslogtreecommitdiff
path: root/coreutils/od_bloaty.c
diff options
context:
space:
mode:
authorDenys Vlasenko2018-01-23 14:49:12 +0100
committerDenys Vlasenko2018-01-23 14:49:12 +0100
commit2b9a45b9e87c1c935cf0a992303313d62e72dc67 (patch)
treede2a52bc664a694622dc235f842465b8541637a2 /coreutils/od_bloaty.c
parent8528d3d4f8240ab4715f671aa819fe034f0fc285 (diff)
downloadbusybox-2b9a45b9e87c1c935cf0a992303313d62e72dc67.zip
busybox-2b9a45b9e87c1c935cf0a992303313d62e72dc67.tar.gz
od_bloaty: fix debug code
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'coreutils/od_bloaty.c')
-rw-r--r--coreutils/od_bloaty.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/coreutils/od_bloaty.c b/coreutils/od_bloaty.c
index f19875c..c9bb3b8 100644
--- a/coreutils/od_bloaty.c
+++ b/coreutils/od_bloaty.c
@@ -1371,9 +1371,13 @@ int od_main(int argc UNUSED_PARAM, char **argv)
}
#ifdef DEBUG
- for (i = 0; i < G.n_specs; i++) {
- printf("%d: fmt=\"%s\" width=%d\n",
- i, spec[i].fmt_string, width_bytes[spec[i].size]);
+ {
+ int i;
+ for (i = 0; i < G.n_specs; i++) {
+ printf("%d: fmt='%s' width=%d\n",
+ i, G.spec[i].fmt_string,
+ width_bytes[G.spec[i].size]);
+ }
}
#endif