]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[console] Allow usage to be defined independently for each console
authorMichael Brown <mcb30@ipxe.org>
Mon, 26 Mar 2012 16:25:08 +0000 (17:25 +0100)
committerMichael Brown <mcb30@ipxe.org>
Mon, 26 Mar 2012 16:40:01 +0000 (17:40 +0100)
commite024cd39a877ea1b37b9004dbd8f33448418cb36
tree8bc44239bc5920d06b8381edef5aa37a4784aaf3
parentb35d454422a97b89a7128be4d4e9ff7a8f176466
[console] Allow usage to be defined independently for each console

Add the concept of a "console usage", such as "standard output" or
"debug messages".  Allow usages to be associated with each console
independently.  For example, to send debugging output via the serial
port, while preventing it from appearing on the local console:

  #define CONSOLE_SERIAL CONSOLE_USAGE_ALL
  #define CONSOLE_PCBIOS ( CONSOLE_USAGE_ALL & ~CONSOLE_USAGE_DEBUG )

If no usages are explicitly specified, then a default set of usages
will be applied.  For example:

  #define CONSOLE_SERIAL

will have the same affect as

  #define CONSOLE_SERIAL CONSOLE_USAGE_ALL

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/i386/core/video_subr.c
src/arch/i386/firmware/pcbios/bios_console.c
src/arch/i386/interface/vmware/vmconsole.c
src/core/console.c
src/core/debug.c
src/core/serial_console.c
src/include/compiler.h
src/include/ipxe/console.h
src/interface/efi/efi_console.c
src/interface/linux/linux_console.c
src/net/udp/syslog.c