aboutsummaryrefslogtreecommitdiff
path: root/common/host.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/host.c')
-rw-r--r--common/host.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/common/host.c b/common/host.c
index 6ed3d780f..2c2279aa4 100644
--- a/common/host.c
+++ b/common/host.c
@@ -63,11 +63,11 @@ void host_keyboard_send(report_keyboard_t *report)
63 (*driver->send_keyboard)(report); 63 (*driver->send_keyboard)(report);
64 64
65 if (debug_keyboard) { 65 if (debug_keyboard) {
66 print("keys: "); 66 dprint("keys: ");
67 for (int i = 0; i < REPORT_KEYS; i++) { 67 for (int i = 0; i < REPORT_KEYS; i++) {
68 phex(keyboard_report->keys[i]); print(" "); 68 dprintf("%02X ", keyboard_report->keys[i]);
69 } 69 }
70 print(" mods: "); phex(keyboard_report->mods); print("\n"); 70 dprintf(" mods: %02X\n", keyboard_report->mods);
71 } 71 }
72} 72}
73 73
@@ -235,7 +235,7 @@ static inline void add_key_bit(uint8_t code)
235 if ((code>>3) < REPORT_KEYS) { 235 if ((code>>3) < REPORT_KEYS) {
236 keyboard_report->keys[code>>3] |= 1<<(code&7); 236 keyboard_report->keys[code>>3] |= 1<<(code&7);
237 } else { 237 } else {
238 debug("add_key_bit: can't add: "); phex(code); debug("\n"); 238 dprintf("add_key_bit: can't add: %02X\n", code);
239 } 239 }
240} 240}
241 241
@@ -244,6 +244,6 @@ static inline void del_key_bit(uint8_t code)
244 if ((code>>3) < REPORT_KEYS) { 244 if ((code>>3) < REPORT_KEYS) {
245 keyboard_report->keys[code>>3] &= ~(1<<(code&7)); 245 keyboard_report->keys[code>>3] &= ~(1<<(code&7));
246 } else { 246 } else {
247 debug("del_key_bit: can't del: "); phex(code); debug("\n"); 247 dprintf("del_key_bit: can't del: %02X\n", code);
248 } 248 }
249} 249}