diff options
author | Michael Brown <mcb30@ipxe.org> | 2013-11-28 05:41:45 +0000 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2013-11-28 05:54:53 +0000 |
commit | b2251743d80f94445f40f64b75b63d33fe1d8725 (patch) | |
tree | 9c1424242dc2a1a6508bf3e7a723cadf4632f1de /src/net/tcp | |
parent | 7271b5089073d84d74709d3986e1bb32234f1c4d (diff) | |
download | ipxe-b2251743d80f94445f40f64b75b63d33fe1d8725.tar.gz |
[console] Allow console input and output to be disabled independently
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/net/tcp')
-rw-r--r-- | src/net/tcp/syslogs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/tcp/syslogs.c b/src/net/tcp/syslogs.c index a4dc2975..bcda8b45 100644 --- a/src/net/tcp/syslogs.c +++ b/src/net/tcp/syslogs.c @@ -178,7 +178,7 @@ static void syslogs_putchar ( int character ) { /** Encrypted syslog console driver */ struct console_driver syslogs_console __console_driver = { .putchar = syslogs_putchar, - .disabled = 1, + .disabled = CONSOLE_DISABLED, .usage = CONSOLE_SYSLOGS, }; @@ -227,7 +227,7 @@ static int apply_syslogs_settings ( void ) { old_server = NULL; /* Reset encrypted syslog connection */ - syslogs_console.disabled = 1; + syslogs_console.disabled = CONSOLE_DISABLED; intf_restart ( &syslogs, 0 ); /* Do nothing unless we have a log server */ |