From 2b9a45b9e87c1c935cf0a992303313d62e72dc67 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Tue, 23 Jan 2018 14:49:12 +0100 Subject: od_bloaty: fix debug code Signed-off-by: Denys Vlasenko --- coreutils/od_bloaty.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'coreutils') diff --git a/coreutils/od_bloaty.c b/coreutils/od_bloaty.c index f19875c42..c9bb3b85f 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 -- cgit v1.2.3