commit d9935ac14a6d74399cd18449d8e0aa8c7b374a41
parent 9b4bb8d2243b3af477a13fc61e9b7c0406a6bc33
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Fri, 5 Nov 2021 06:23:37 +0100
Add qbe identifier in error strings
When qbe is used with other tools is a bit hard to identify
what is the tool that is generating the error. Adding an
identifier at the beginning of the line makes much easier
to identify the tool generating the error.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/parse.c b/parse.c
@@ -142,7 +142,7 @@ err(char *s, ...)
va_list ap;
va_start(ap, s);
- fprintf(stderr, "%s:%d: ", inpath, lnum);
+ fprintf(stderr, "qbe:%s:%d: ", inpath, lnum);
vfprintf(stderr, s, ap);
fprintf(stderr, "\n");
va_end(ap);