summaryrefslogtreecommitdiffstats
path: root/src/datatype.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/datatype.c')
-rw-r--r--src/datatype.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/datatype.c b/src/datatype.c
index 5600efcc..ec0b1201 100644
--- a/src/datatype.c
+++ b/src/datatype.c
@@ -204,8 +204,11 @@ void symbol_table_print(const struct symbol_table *tbl,
if (byteorder == BYTEORDER_BIG_ENDIAN)
switch_byteorder(&value, len);
- printf("\t%-30s\t0x%.*" PRIx64 "\n",
- s->identifier, 2 * len, value);
+ if (tbl->base == BASE_DECIMAL)
+ printf("\t%-30s\t%20lu\n", s->identifier, value);
+ else
+ printf("\t%-30s\t0x%.*" PRIx64 "\n",
+ s->identifier, 2 * len, value);
}
}