aboutsummaryrefslogtreecommitdiffstats
path: root/asm/listing.h
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2018-12-11 00:06:29 -0800
committerH. Peter Anvin (Intel) <hpa@zytor.com>2018-12-12 17:43:25 -0800
commite2f5edbb3a24db347e4f52cdf134402ab987b085 (patch)
tree2e1e18e6565a531b39f88b767d8d8a81f555a3ea /asm/listing.h
parentc0b32a36503e5dd3e109c8c2b40a8c2081111430 (diff)
downloadnasm-e2f5edbb3a24db347e4f52cdf134402ab987b085.tar.gz
nasm-e2f5edbb3a24db347e4f52cdf134402ab987b085.tar.xz
nasm-e2f5edbb3a24db347e4f52cdf134402ab987b085.zip
error: new flag ERR_HERE
ERR_HERE is used to mark messages of the form "... here" so that we can emit sane output to the list file with filename and line number, instead of a nonsensical "here" which could point almost anywhere. This patch contains some changes from the one in the master branch to make the code cleaner. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'asm/listing.h')
-rw-r--r--asm/listing.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/asm/listing.h b/asm/listing.h
index df88e8a8..f3ddb0e0 100644
--- a/asm/listing.h
+++ b/asm/listing.h
@@ -96,7 +96,7 @@ struct lfmt {
/*
* Called on a warning or error, with the error message.
*/
- void (*error)(int severity, const char *pfx, const char *msg);
+ void printf_func(2, 3) (*error)(int severity, const char *fmt, ...);
/*
* Update the current offset. Used to give the listing generator