From 44760740217e1a6b18645769bede10da37d7a48f Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Fri, 28 Jan 2011 18:03:26 +0900 Subject: [PATCH] Print more addresses as hex. --- tools/qfcc/source/globals.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/qfcc/source/globals.c b/tools/qfcc/source/globals.c index b85f33aa3..c5561e67c 100644 --- a/tools/qfcc/source/globals.c +++ b/tools/qfcc/source/globals.c @@ -95,7 +95,7 @@ dump_globals (progs_t *pr) if (func >= 0 && func < pr->progs->numfunctions) { start = pr->pr_functions[func].first_statement; if (start > 0) - comment = va (" %d @ %d", func, start); + comment = va (" %d @ %x", func, start); else comment = va (" %d = #%d", func, -start); } else { @@ -103,7 +103,7 @@ dump_globals (progs_t *pr) } } if (def->type == ev_field) - comment = va (" %d", G_INT (pr, offset)); + comment = va (" %x", G_INT (pr, offset)); printf ("%x %d %s %s%s\n", offset, saveglobal, name, type, comment); } @@ -159,7 +159,7 @@ dump_functions (progs_t *pr) count = func->numparms; for (j = 0; j < count; j++) printf (" %d", func->parm_size[j]); - printf (") %d @ %d", func->locals, func->parm_start); + printf (") %d @ %x", func->locals, func->parm_start); puts (""); } }