diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2008-07-21 23:29:33 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2008-07-21 23:29:33 -0400 |
commit | 79cb1190fdb2a97d9897fd5238989fbddf6b9964 (patch) | |
tree | 6a7ba8ed89d0563986aac8e0788b4fbc3852b61a /src/output.c | |
parent | 2ddcf1885f1f8a0de7e8bd6666abfabf67b0fda0 (diff) | |
download | seabios-hppa-79cb1190fdb2a97d9897fd5238989fbddf6b9964.zip seabios-hppa-79cb1190fdb2a97d9897fd5238989fbddf6b9964.tar.gz seabios-hppa-79cb1190fdb2a97d9897fd5238989fbddf6b9964.tar.bz2 |
Shrink size of bx_panic when CONFIG_DEBUG_LEVEL is off.
When CONFIG_DEBUG_LEVEL the debug message wont be shown, so don't
bother calling bvprintf.
Diffstat (limited to 'src/output.c')
-rw-r--r-- | src/output.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/output.c b/src/output.c index d9671ac..ff190f8 100644 --- a/src/output.c +++ b/src/output.c @@ -225,10 +225,12 @@ bvprintf(u16 action, const char *fmt, va_list args) void BX_PANIC(const char *fmt, ...) { - va_list args; - va_start(args, fmt); - bvprintf(0, fmt, args); - va_end(args); + if (CONFIG_DEBUG_LEVEL) { + va_list args; + va_start(args, fmt); + bvprintf(0, fmt, args); + va_end(args); + } // XXX - use PANIC PORT. irq_disable(); |