commit f82124efc20c2976037f821cfa502b03f11bd2a6
parent a951173828d4c5fad5de2c54576cb01ad484dbae
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Mon, 4 Apr 2022 14:24:29 +0200
cc1: Improve message output in expand()
The debug output was too cryptic and addign the meaning of the
printed values helps to identify the state.
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/cmd/cc/cc1/cpp.c b/src/cmd/cc/cc1/cpp.c
@@ -276,7 +276,8 @@ expand(Symbol *sym)
char *arglist[NR_MACROARG];
char arguments[INPUTSIZ], buffer[INPUTSIZ];
- DBG("MACRO '%s' detected %d %d", sym->name, disexpand, sym->hide);
+ DBG("MACRO '%s' detected disexpand=%d hide=%d",
+ sym->name, disexpand, sym->hide);
if (disexpand || sym->hide)
return 0;