diff options
| author | Roberto E. Vargas Caballero <[email protected]> | 2021-11-05 06:23:37 +0100 |
|---|---|---|
| committer | Quentin Carbonneaux <[email protected]> | 2022-07-01 13:19:33 +0200 |
| commit | d9935ac14a6d74399cd18449d8e0aa8c7b374a41 (patch) | |
| tree | de1ba20389b51c73321fd653c42048bd284f792d /parse.c | |
| parent | 9b4bb8d2243b3af477a13fc61e9b7c0406a6bc33 (diff) | |
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 (limited to 'parse.c')
| -rw-r--r-- | parse.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |
