diff options
author | Keith Kanios <spook@dynatos.net> | 2007-04-14 00:10:59 +0000 |
---|---|---|
committer | Keith Kanios <spook@dynatos.net> | 2007-04-14 00:10:59 +0000 |
commit | 93f2e9a5a1c46c3203a9df0933301f42b2b88eb9 (patch) | |
tree | 506f66150034666ec42b6da902d721dde96a7f88 /listing.c | |
parent | 0899e21289fac4e82776ec3dd0d295a6b8221790 (diff) | |
download | nasm-93f2e9a5a1c46c3203a9df0933301f42b2b88eb9.tar.gz nasm-93f2e9a5a1c46c3203a9df0933301f42b2b88eb9.tar.bz2 nasm-93f2e9a5a1c46c3203a9df0933301f42b2b88eb9.zip |
c99 printf/fprintf compliance.
Diffstat (limited to 'listing.c')
-rw-r--r-- | listing.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -56,10 +56,10 @@ static void list_emit(void) if (!listlinep && !listdata[0]) return; - fprintf(listfp, "%6ld ", ++listlineno); + fprintf(listfp, "%6"PRId32" ", ++listlineno); if (listdata[0]) - fprintf(listfp, "%08lX %-*s", listoffset, LIST_HEXBIT + 1, + fprintf(listfp, "%08"PRIX32" %-*s", listoffset, LIST_HEXBIT + 1, listdata); else fprintf(listfp, "%*s", LIST_HEXBIT + 10, ""); @@ -206,7 +206,7 @@ static void list_output(int32_t offset, const void *data, uint32_t type) list_out(offset, q); } else if (typ == OUT_RESERVE) { char q[20]; - snprintf(q, sizeof(q), "<res %08lX>", size); + snprintf(q, sizeof(q), "<res %08"PRIX32">", size); list_out(offset, q); } } |