od_bloaty: fix debug code
authorDenys Vlasenko <vda.linux@googlemail.com>
Tue, 23 Jan 2018 13:49:12 +0000 (14:49 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Tue, 23 Jan 2018 13:49:12 +0000 (14:49 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
coreutils/od_bloaty.c

index f19875c427784b7a0d0cb0430da9f6a8d46a462b..c9bb3b85f46b9ea2e47657d7b91d2fdd4a06cc81 100644 (file)
@@ -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