From e7e822024662b91f3957d691075c267b3ba776af Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sat, 5 Mar 2011 16:25:56 +0900 Subject: [PATCH] Dump code addresses as hex, too. --- tools/qfcc/source/dump_globals.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/qfcc/source/dump_globals.c b/tools/qfcc/source/dump_globals.c index 3dec3a00d..9cfcc7f65 100644 --- a/tools/qfcc/source/dump_globals.c +++ b/tools/qfcc/source/dump_globals.c @@ -270,7 +270,7 @@ qfo_relocs (qfo_t *qfo) case rel_op_b_def: case rel_op_c_def: def = qfo->defs + reloc->target; - printf (" op.%c@%d def#%d %s", + printf (" op.%c@%x def#%d %s", reloc->type - rel_op_a_def + 'a', reloc->offset, reloc->target, QFO_GETSTR (qfo, def->name)); @@ -278,7 +278,7 @@ qfo_relocs (qfo_t *qfo) case rel_op_a_op: case rel_op_b_op: case rel_op_c_op: - printf (" op.%c op@%d", reloc->type - rel_op_a_def + 'a', + printf (" op.%c op@%x", reloc->type - rel_op_a_def + 'a', reloc->offset); break; case rel_def_op: