diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2008-06-13 11:39:42 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2008-06-13 11:39:42 +0100 |
commit | bf291c0fbcbb10e1af85875a0569f23ab7f33475 (patch) | |
tree | 99a9bd32693476524d0dd7d834b215d7ec26b17d /xen/drivers/char/console.c | |
parent | be5b11f388fcb30d367634b65e1e5911251f31be (diff) | |
download | xen-bf291c0fbcbb10e1af85875a0569f23ab7f33475.tar.gz xen-bf291c0fbcbb10e1af85875a0569f23ab7f33475.tar.bz2 xen-bf291c0fbcbb10e1af85875a0569f23ab7f33475.zip |
Improve serial output when dropping characters to drop them in big
batches. Printing one character in one thousand is not useful!
Also make debug handlers all print synchronously.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'xen/drivers/char/console.c')
-rw-r--r-- | xen/drivers/char/console.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/xen/drivers/char/console.c b/xen/drivers/char/console.c index feef9a5506..1007e3e628 100644 --- a/xen/drivers/char/console.c +++ b/xen/drivers/char/console.c @@ -635,16 +635,6 @@ int console_has(const char *device) return 0; } -void console_start_log_everything(void) -{ - atomic_inc(&print_everything); -} - -void console_end_log_everything(void) -{ - atomic_dec(&print_everything); -} - void console_force_unlock(void) { spin_lock_init(&console_lock); @@ -659,14 +649,14 @@ void console_force_lock(void) void console_start_sync(void) { - console_start_log_everything(); + atomic_inc(&print_everything); serial_start_sync(sercon_handle); } void console_end_sync(void) { serial_end_sync(sercon_handle); - console_end_log_everything(); + atomic_dec(&print_everything); } void console_putc(char c) |