aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common/keyhandler.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2008-06-13 11:39:42 +0100
committerKeir Fraser <keir.fraser@citrix.com>2008-06-13 11:39:42 +0100
commitbf291c0fbcbb10e1af85875a0569f23ab7f33475 (patch)
tree99a9bd32693476524d0dd7d834b215d7ec26b17d /xen/common/keyhandler.c
parentbe5b11f388fcb30d367634b65e1e5911251f31be (diff)
downloadxen-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/common/keyhandler.c')
-rw-r--r--xen/common/keyhandler.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/xen/common/keyhandler.c b/xen/common/keyhandler.c
index 2acd17ae7b..db57e5a9af 100644
--- a/xen/common/keyhandler.c
+++ b/xen/common/keyhandler.c
@@ -36,10 +36,10 @@ static void keypress_action(unsigned long unused)
{
keyhandler_t *h;
unsigned char key = keypress_key;
- console_start_log_everything();
+ console_start_sync();
if ( (h = key_table[key].u.handler) != NULL )
(*h)(key);
- console_end_log_everything();
+ console_end_sync();
}
static DECLARE_TASKLET(keypress_tasklet, keypress_action, 0);
@@ -50,10 +50,10 @@ void handle_keypress(unsigned char key, struct cpu_user_regs *regs)
if ( !in_irq() || (key_table[key].flags & KEYHANDLER_IRQ_CALLBACK) )
{
- console_start_log_everything();
+ console_start_sync();
if ( (h = key_table[key].u.irq_handler) != NULL )
(*h)(key, regs);
- console_end_log_everything();
+ console_end_sync();
}
else
{
@@ -105,9 +105,6 @@ static void dump_registers(unsigned char key, struct cpu_user_regs *regs)
{
unsigned int cpu;
- /* We want to get everything out that we possibly can. */
- console_start_sync();
-
printk("'%c' pressed -> dumping registers\n", key);
/* Get local execution state out immediately, in case we get stuck. */
@@ -123,8 +120,6 @@ static void dump_registers(unsigned char key, struct cpu_user_regs *regs)
}
printk("\n");
-
- console_end_sync();
}
static void dump_dom0_registers(unsigned char key)