From bd6f539ff9409aa7d9056fabe120b457b0a15997 Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Tue, 29 Aug 2006 13:21:58 +0300 Subject: [PATCH] [PATCH] kdrive/linux keyboard: silence excessive debugging noise --- hw/kdrive/linux/keyboard.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/hw/kdrive/linux/keyboard.c b/hw/kdrive/linux/keyboard.c index 9400e6b28..eb4a8f1fb 100644 --- a/hw/kdrive/linux/keyboard.c +++ b/hw/kdrive/linux/keyboard.c @@ -659,8 +659,10 @@ LinuxKeyboardRead (int fd, void *closure) prefix = 0; continue; default: +#ifdef DEBUG ErrorF("Unreported Prefix0 scancode: 0x%02x\n", scancode); +#endif /* * "Internet" keyboards are generating lots of new * codes. Let them pass. There is little consistency @@ -675,7 +677,9 @@ LinuxKeyboardRead (int fd, void *closure) case KEY_Prefix1: { /* we do no handle these */ +#ifdef DEBUG ErrorF("Prefix1 scancode: 0x%02x\n", scancode); +#endif b++; prefix = 0; continue; @@ -683,7 +687,10 @@ LinuxKeyboardRead (int fd, void *closure) default: /* should not happen*/ case 0: /* do nothing */ +#ifdef DEBUG ErrorF("Plain scancode: 0x%02x\n", scancode); +#endif + ; } prefix = 0;