From 15bb2330368783724cf526dfec5c02d028bd5b98 Mon Sep 17 00:00:00 2001 From: Victor van den Elzen Date: Tue, 11 Aug 2009 02:10:16 +0200 Subject: 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. --- labels.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'labels.c') 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); -- cgit v1.2.3