aboutsummaryrefslogtreecommitdiff
path: root/src/kbd.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2008-05-24 23:46:33 -0400
committerKevin O'Connor <kevin@koconnor.net>2008-05-24 23:46:33 -0400
commitac8df8c1dbdc789454b3739898d16eebc3e7dbff (patch)
tree456a9220fbcd7d2a0d49e880e498f5e0846afe25 /src/kbd.c
parent0f803e460e907c4b8ad5c121ea977d30f87b98dc (diff)
downloadseabios-hppa-ac8df8c1dbdc789454b3739898d16eebc3e7dbff.zip
seabios-hppa-ac8df8c1dbdc789454b3739898d16eebc3e7dbff.tar.gz
seabios-hppa-ac8df8c1dbdc789454b3739898d16eebc3e7dbff.tar.bz2
Improve control of debug messages.
Rename BX_INFO() to dprintf() and add a "severity level" parameter. Add CONFIG_DEBUG_LEVEL compile option to control debug verbosity. Add more debug info to init steps of post.c.
Diffstat (limited to 'src/kbd.c')
-rw-r--r--src/kbd.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/kbd.c b/src/kbd.c
index 6786698..1f4ea30 100644
--- a/src/kbd.c
+++ b/src/kbd.c
@@ -521,7 +521,7 @@ process_key(u8 scancode)
switch (scancode) {
case 0x00:
- BX_INFO("KBD: int09 handler: AL=0\n");
+ dprintf(1, "KBD: int09 handler: AL=0\n");
return;
case 0x3a: /* Caps Lock press */
@@ -643,7 +643,7 @@ process_key(u8 scancode)
break; /* toss key releases ... */
}
if (scancode > MAX_SCAN_CODE) {
- BX_INFO("KBD: int09h_handler(): unknown scancode read: 0x%02x!\n"
+ dprintf(1, "KBD: int09h_handler(): unknown scancode read: 0x%02x!\n"
, scancode);
return;
}
@@ -682,7 +682,8 @@ process_key(u8 scancode)
}
}
if (scancode==0 && asciicode==0) {
- BX_INFO("KBD: int09h_handler(): scancode & asciicode are zero?\n");
+ dprintf(1, "KBD: int09h_handler():"
+ " scancode & asciicode are zero?\n");
}
enqueue_key(scancode, asciicode);
break;