diff options
author | Michael Brown <mcb30@ipxe.org> | 2012-03-26 21:03:59 +0100 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2012-03-26 21:58:50 +0100 |
commit | c2875ae32952690e11fc6f654fa48f4f2c9f0567 (patch) | |
tree | fca03fb4effcb19498caa8729ad782065cd633bb /src/net/udp | |
parent | 24b7296319666709ac49bedb47df18d0bc37704e (diff) | |
download | ipxe-c2875ae32952690e11fc6f654fa48f4f2c9f0567.tar.gz |
[console] Do not share ANSI escape context between lineconsole users
An ANSI escape sequence context cannot be shared between multiple
users. Make the ANSI escape sequence context part of the line console
definition and provide individual contexts for each user.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/net/udp')
-rw-r--r-- | src/net/udp/syslog.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/net/udp/syslog.c b/src/net/udp/syslog.c index abf51359..caa0d0b2 100644 --- a/src/net/udp/syslog.c +++ b/src/net/udp/syslog.c @@ -68,10 +68,18 @@ static struct interface syslogger = INTF_INIT ( syslogger_desc ); /** Syslog line buffer */ static char syslog_buffer[SYSLOG_BUFSIZE]; +/** Syslog ANSI escape sequence handlers */ +static struct ansiesc_handler syslog_handlers[] = { + { 0, NULL } +}; + /** Syslog line console */ static struct line_console syslog_line = { .buffer = syslog_buffer, .len = sizeof ( syslog_buffer ), + .ctx = { + .handlers = syslog_handlers, + }, }; /** Syslog recursion marker */ |