From 019032876e0421dd96d283eb8425f0c1e45ed2b9 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Wed, 29 May 2024 16:12:06 -0400 Subject: unprotbas: consistently prefix hex with $ in verbose output. --- unprotbas.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'unprotbas.c') diff --git a/unprotbas.c b/unprotbas.c index 6dd263c..e7a7df8 100644 --- a/unprotbas.c +++ b/unprotbas.c @@ -213,7 +213,7 @@ int fixcode(void) { while(pos < filelen) { tmpno = getword(pos); if(tmpno <= lineno) { - fprintf(stderr, "Warning: line number %d at offset %04x is <= previous line number %d\n", + fprintf(stderr, "Warning: line number %d at offset $%04x is <= previous line number %d\n", tmpno, pos, lineno); } lineno = tmpno; @@ -221,7 +221,7 @@ int fixcode(void) { offset = data[pos + 2]; /* fprintf(stderr, "pos %d, line #%d, offset %d\n", pos, lineno, offset); */ if(offset < 6) { - if(verbose) fprintf(stderr, "Found invalid offset %d (<6) at line %d, file offset %04x\n", offset, lineno, pos); + if(verbose) fprintf(stderr, "Found invalid offset %d (<6) at line %d, file offset $%04x\n", offset, lineno, pos); offset += fixline(pos); result++; } @@ -283,7 +283,7 @@ void breakcode(void) { memmove(data + pos, badcode, offset); if(verbose) - fprintf(stderr, "Inserted line 32767 with invalid offset at file offset %04x\n", pos); + fprintf(stderr, "Inserted line 32767 with invalid offset at file offset $%04x\n", pos); /* update pointers that would be affected by the code move */ stmcur += offset; @@ -458,7 +458,7 @@ void adjust_vntable_size(int oldsize, int newsize) { int move_by; if(oldsize != newsize) { move_by = newsize - oldsize; - if(verbose) fprintf(stderr, "need %d bytes for vntable, have %d, moving VVTP by %d to %04x\n", + if(verbose) fprintf(stderr, "need %d bytes for vntable, have %d, moving VVTP by %d to $%04x\n", newsize, oldsize, move_by, vvtp + move_by); move_code(move_by); } -- cgit v1.2.3