summary refs log tree commit diff
diff options
context:
space:
mode:
authorRoberto E. Vargas Caballero <k0ga@shike2.com>2021-11-05 06:23:37 +0100
committerQuentin Carbonneaux <quentin@c9x.me>2022-07-01 13:19:33 +0200
commitd9935ac14a6d74399cd18449d8e0aa8c7b374a41 (patch)
treede1ba20389b51c73321fd653c42048bd284f792d
parent9b4bb8d2243b3af477a13fc61e9b7c0406a6bc33 (diff)
downloadroux-d9935ac14a6d74399cd18449d8e0aa8c7b374a41.tar.gz
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.
-rw-r--r--parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.c b/parse.c
index 972c2e2..f681c40 100644
--- 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);