aboutsummaryrefslogtreecommitdiffhomepage
path: root/c/c.c
diff options
context:
space:
mode:
author lemon<lsof@mailbox.org>2025-11-16 12:31:11 +0100
committer lemon<lsof@mailbox.org>2025-11-19 10:40:31 +0100
commitf5296e1324f0ecf397e752793a9772e71a9ba31a (patch)
treebbf151d165b406d31984ab93f530908da2814580 /c/c.c
parente9dd9115e21c0a731c1b84120d2013aef9b0b1c9 (diff)
debug output to stdout
Diffstat (limited to 'c/c.c')
-rw-r--r--c/c.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/c/c.c b/c/c.c
index 2aa8014..e2ccc87 100644
--- a/c/c.c
+++ b/c/c.c
@@ -4233,9 +4233,9 @@ docomp(struct comp *cm)
} else if (decl.ty.t != TYFUNC && decl.scls != SCTYPEDEF && (decl.scls != SCEXTERN || noscls)) {
objnewdat(d->name, Sbss, decl.scls == SCEXTERN, typesize(d->ty), typealign(d->ty));
}
- if (ccopt.dbg.p) efmt("var %s : %tq\n", d->name, d->ty, d->qual);
+ if (ccopt.dbg.p) bfmt(ccopt.dbgout, "var %s : %tq\n", d->name, d->ty, d->qual);
} else {
- if (ccopt.dbg.p && decl.ty.t) efmt("type %ty\n", decl.ty);
+ if (ccopt.dbg.p && decl.ty.t) bfmt(ccopt.dbgout, "type %ty\n", decl.ty);
}
freearena(&cm->fnarena);
freearena(&cm->exarena);