ref: ec4c79f3a6ed97ec0c407a870827382cbefb1166
parent: 12ccbe2af48585937a4bc80c6e559b9617c6aac6
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Wed Jun 15 14:09:28 EDT 2022
cc1: Add prefix to DBG messages DBG messages are hard to follow without a proper context.
--- a/src/cmd/cc/cc1/decl.c
+++ b/src/cmd/cc/cc1/decl.c
@@ -755,7 +755,7 @@
tp->ns = tpns++;
sym->type = tp;
tp->tag = sym;
- DBG("declared tag '%s' with ns = %d\n",
+ DBG("DECL: declared tag '%s' with ns = %d\n",
(sym->name) ? sym->name : "anonymous", tp->ns);
}
@@ -926,7 +926,7 @@
return sym;
}
- DBG("New field '%s' in namespace %d\n", name, structp->ns);
+ DBG("DECL: New field '%s' in namespace %d\n", name, structp->ns);
structp->p.fields = xrealloc(structp->p.fields, ++n * sizeof(*sym));
structp->p.fields[n-1] = sym;
structp->n.elem = n;