coreboot/src/console
Julius Werner d906bb68c3 cbmem_console: Improve 'cbmem -1' behavior for truncated pre-CBMEM logs
The 'cbmem -1' flag that cuts off console output before the last boot
will ignore content from earlier stages if it was truncated due to lack
of pre-CBMEM console space. This patch makes the "log truncated" message
more specific and adds it as an additional cut-off marker to 'cbmem -1'
to counteract that problem.

Also raise the log level of the coreboot banner one step to BIOS_NOTICE
to make it more likely to be included in the output for 'cbmem -1' to
find. (I believe NOTICE is reasonable but I wouldn't want to go as far
as WARN which should be reserved for actual problems. Of course this is
not ideal, but then again, our whole log-level system really isn't... it
would be better if we could make it always print a banner to the CBMEM
console without affecting the UART at the same time, but that would
require a larger amount of work.)

Change-Id: I58288593dfa757e14f4a9da4ffa7e27b0b66feb9
Reported-by: https://ticket.coreboot.org/issues/117
Signed-off-by: Julius Werner <jwerner@chromium.org>
Reviewed-on: https://review.coreboot.org/19720
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
2017-05-18 19:49:43 +02:00
..
console.c console: Add write line routine 2016-08-10 22:30:19 +02:00
die.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
early_print.c src/console: Add required space before opening parenthesis '(' 2016-08-31 20:06:20 +02:00
hw-debug_sink.adb Hook up libhwbase in ramstage 2016-11-29 23:45:40 +01:00
hw-debug_sink.ads Hook up libhwbase in ramstage 2016-11-29 23:45:40 +01:00
init.c cbmem_console: Improve 'cbmem -1' behavior for truncated pre-CBMEM logs 2017-05-18 19:49:43 +02:00
Kconfig Hook up libhwbase in ramstage 2016-11-29 23:45:40 +01:00
Makefile.inc console: Make snprintf available in all stages 2017-04-24 19:25:21 +02:00
post.c console/post: be explicit about conditional cmos_post_log() compiling 2016-05-25 18:04:11 +02:00
printk.c console: Enable do_printk_va_list for VBOOT 2016-12-27 18:07:39 +01:00
vsprintf.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
vtxprintf.c console/vtxprintf.c: cast precision to size_t for string length 2016-11-21 23:44:18 +01:00