od_bloaty: fix debug code

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2018-01-23 14:49:12 +01:00
parent 8528d3d4f8
commit 2b9a45b9e8

View 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