summaryrefslogtreecommitdiff
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 <hpa@zytor.com>2018-12-11 00:06:29 -0800
commitddb290681e52aee70fc4b3342829fb9770a089b2 (patch)
treeac1c8104604e7a11db64198ca8ea1a387a361124 /asm/listing.h
parent026b62f264b86372cc596e5a035f87385931486a (diff)
downloadnasm-ddb290681e52aee70fc4b3342829fb9770a089b2.tar.gz
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. 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