diff options
author | Daniel Stone <daniel.stone@nokia.com> | 2006-08-29 13:21:58 +0300 |
---|---|---|
committer | Daniel Stone <daniels@endtroducing.fooishbar.org> | 2006-08-29 15:18:23 +0300 |
commit | bd6f539ff9409aa7d9056fabe120b457b0a15997 (patch) | |
tree | 7a112470c3be0b6e152fbb800c49af07427950df /hw/kdrive/linux | |
parent | 5436fce09003e20744a388fa4ae49007c9cf8ede (diff) |
[PATCH] kdrive/linux keyboard: silence excessive debugging noise
Diffstat (limited to 'hw/kdrive/linux')
-rw-r--r-- | hw/kdrive/linux/keyboard.c | 7 |
1 files changed, 7 insertions, 0 deletions
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; |