commit ec4c79f3a6ed97ec0c407a870827382cbefb1166
parent 12ccbe2af48585937a4bc80c6e559b9617c6aac6
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Wed, 15 Jun 2022 18:09:28 +0200
cc1: Add prefix to DBG messages
DBG messages are hard to follow without a proper context.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/cmd/cc/cc1/decl.c b/src/cmd/cc/cc1/decl.c
@@ -755,7 +755,7 @@ newtag(void)
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 @@ field(struct decl *dcl)
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;