aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHelge Deller <deller@gmx.de>2024-01-18 18:18:52 +0100
committerHelge Deller <deller@gmx.de>2024-01-18 18:18:52 +0100
commit25750612451261f740756456c7e775296a21c2ef (patch)
tree64d5f134048ead01575bcab27f1878be29854b03 /src
parent5a3996bfb06f5d94ee11e6d9e897500c6c40f3cc (diff)
downloadseabios-hppa-25750612451261f740756456c7e775296a21c2ef.zip
seabios-hppa-25750612451261f740756456c7e775296a21c2ef.tar.gz
seabios-hppa-25750612451261f740756456c7e775296a21c2ef.tar.bz2
output: Allow to simply switch to Qemu's builtin_console_out() for debugging
Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'src')
-rw-r--r--src/output.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/output.c b/src/output.c
index 351e91e..b497f1c 100644
--- a/src/output.c
+++ b/src/output.c
@@ -122,8 +122,13 @@ putc(struct putcinfo *action, char c)
return;
}
+#if 1
void (*func)(struct putcinfo *info, char c) = GET_GLOBAL(action->func);
func(action, c);
+#else
+ /* use Qemu's built-in function to directly output chars */
+ builtin_console_out(c);
+#endif
}
// Ouptut a string.