This patch provides output like this:
<8>dynamic PCI: 00:0b.1(PCI: 00:0b.1): enabled 1 have_resources 1 initialized 1
<7>Stage2 code done.
<6>LAR: Attempting to open 'normal/payload/segment0'.
<8>LAR: Start 0xfff80000 len 0x80000
<8>LAR: seen member normal/[EMAIL PROTECTED], size 1776
<8>LAR: seen member normal/initram/[EMAIL PROTECTED], size 31644

We can thus get SPEW data but then easily filter it by log level.

Index: lib/console.c
===================================================================
--- lib/console.c       (revision 884)
+++ lib/console.c       (working copy)
@@ -136,8 +136,14 @@
                return 0;
        }

+       console_tx_byte('<', (void *)0);
+       console_tx_byte(msg_level + '0', (void *)0);
+       console_tx_byte('>', (void *)0);
+
+       i = 3;
+
        va_start(args, fmt);
-       i = vtxprintf(console_tx_byte, (void *)0, fmt, args);
+       i += vtxprintf(console_tx_byte, (void *)0, fmt, args);
        va_end(args);

        return i;


Signed-off-by: Ronald G. Minnich <[EMAIL PROTECTED]>

But better code is welcome.

ron

--
coreboot mailing list: [email protected]
http://www.coreboot.org/mailman/listinfo/coreboot

Reply via email to