summaryrefslogtreecommitdiff
path: root/labels.c
diff options
context:
space:
mode:
authorVictor van den Elzen <victor.vde@gmail.com>2009-08-11 02:10:16 +0200
committerVictor van den Elzen <victor.vde@gmail.com>2009-08-11 02:43:41 +0200
commit15bb2330368783724cf526dfec5c02d028bd5b98 (patch)
treefa653bd47ff1a50eb5e0264cadf158413e3b9ca0 /labels.c
parent5a49e7c578378308c4e866313ea08c65e6869a06 (diff)
downloadnasm-15bb2330368783724cf526dfec5c02d028bd5b98.tar.gz
nasm-15bb2330368783724cf526dfec5c02d028bd5b98.tar.bz2
nasm-15bb2330368783724cf526dfec5c02d028bd5b98.zip
Fix some format strings for nasm_error
Added a format attribute to nasm_error (only for GCC) and used the resulting warnings to fix some format strings.
Diffstat (limited to 'labels.c')
-rw-r--r--labels.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/labels.c b/labels.c
index 8c850c3..9152552 100644
--- a/labels.c
+++ b/labels.c
@@ -224,7 +224,7 @@ void redefine_label(char *label, int32_t segment, int64_t offset, char *special,
#if DEBUG<3
if (!strncmp(label, "debugdump", 9))
#endif
- nasm_error(ERR_DEBUG, "redefine_label (%s, %ld, %08lx, %s, %d, %d)",
+ nasm_error(ERR_DEBUG, "redefine_label (%s, %"PRIx32", %"PRIx64", %s, %d, %d)",
label, segment, offset, special, is_norm, isextrn);
#endif
@@ -288,7 +288,7 @@ void define_label(char *label, int32_t segment, int64_t offset, char *special,
#if DEBUG<3
if (!strncmp(label, "debugdump", 9))
#endif
- nasm_error(ERR_DEBUG, "define_label (%s, %ld, %08lx, %s, %d, %d)",
+ nasm_error(ERR_DEBUG, "define_label (%s, %"PRIx32", %"PRIx64", %s, %d, %d)",
label, segment, offset, special, is_norm, isextrn);
#endif
lptr = find_label(label, 1);