diff options
author | knolax <1339802534.kk@gmail.com> | 2017-12-29 18:43:18 -0500 |
---|---|---|
committer | knolax <1339802534.kk@gmail.com> | 2017-12-29 18:43:18 -0500 |
commit | 9ce14e364898c7c2066951f1fcb67606a5cc4f3d (patch) | |
tree | b4e6f89032d42a9a9861216eb372035fe597f8c7 /skey.c | |
parent | 8ab78e2415a6178c91d61b8bb0d72cf74aea568a (diff) |
changed all the debug prints to be KERN_DEBUG
Diffstat (limited to 'skey.c')
-rw-r--r-- | skey.c | 30 |
1 files changed, 15 insertions, 15 deletions
@@ -170,13 +170,13 @@ int processkey(int row, int column, int state) { break; } if ((KEYSTATE_PHYS & keystate[row][column])) { - printk(KERN_INFO "skey: previous KEYSTATE_PHYS for r:%d,c:%d was %d\n", row, column, (KEYSTATE_PHYS & keystate[row][column])); + printk(KERN_DEBUG "skey: previous KEYSTATE_PHYS for r:%d,c:%d was %d\n", row, column, (KEYSTATE_PHYS & keystate[row][column])); } //falling edge if ((KEYSTATE_PHYS & keystate[row][column]) && !state) { - printk(KERN_INFO "skey: falling edge detected for r:%d,c:%d\n", row, column); + printk(KERN_DEBUG "skey: falling edge detected for r:%d,c:%d\n", row, column); if (!stickymode) { - printk(KERN_INFO "skey: stickymode off with falling edge, reporting key up with keycode %d\n", skey_keymap[current_keymap][row][column]); + printk(KERN_DEBUG "skey: stickymode off with falling edge, reporting key up with keycode %d\n", skey_keymap[current_keymap][row][column]); //reports key up input_report_key(skey_dev, skey_keymap[current_keymap][row][column], 0); input_sync(skey_dev); @@ -184,38 +184,38 @@ int processkey(int row, int column, int state) { } //rising edge }else if (!(KEYSTATE_PHYS & keystate[row][column]) && state) { - printk(KERN_INFO "skey: rising edge detected for r:%d,c:%d\n", row, column); + printk(KERN_DEBUG "skey: rising edge detected for r:%d,c:%d\n", row, column); /* *handles keys that have special behavior, and to which stickykey do not apply * if sticky keys don't apply then only the falling edge applies */ switch (skey_keymap[current_keymap][row][column]) { case KEY_ALPHAMAP: - printk(KERN_INFO "skey: changing to keymap ALPHA\n"); + printk(KERN_DEBUG "skey: changing to keymap ALPHA\n"); current_keymap = 0; return 0; break; case KEY_NUMBERMAP: - printk(KERN_INFO "skey: changing to keymap NUM\n"); + printk(KERN_DEBUG "skey: changing to keymap NUM\n"); current_keymap = 1; return 0; break; case KEY_SPECIALMAP: - printk(KERN_INFO "skey: changing to keymap SPECIAL\n"); + printk(KERN_DEBUG "skey: changing to keymap SPECIAL\n"); current_keymap = 2; return 0; break; case KEY_STICKYMAP: - printk(KERN_INFO "skey: toggling stickymode\n"); + printk(KERN_DEBUG "skey: toggling stickymode\n"); stickymode = !stickymode; if (!stickymode) { clearkeystate(); - printk(KERN_INFO "skey: cleaned stickmode states\n"); + printk(KERN_DEBUG "skey: cleaned stickmode states\n"); } return 0; break; case KEY_MS_2ND: - printk(KERN_INFO "skey: toggling MS_2ND\n"); + printk(KERN_DEBUG "skey: toggling MS_2ND\n"); if (current_keymap == 2) { current_keymap = 3; } else if (current_keymap == 3) { @@ -256,17 +256,17 @@ int processkey(int row, int column, int state) { } //if it's stickymode, toggle the state stored and send corresponding vent if (stickymode) { - printk(KERN_INFO "skey: stickymoe on with rising edge\n"); + printk(KERN_DEBUG "skey: stickymoe on with rising edge\n"); //it was high before, so now it's being toggled off if (keystate[row][column] & keystate_bitmask) { - printk(KERN_INFO "skey: stickymode sending key up with code %d\n", skey_keymap[current_keymap][row][column]); + printk(KERN_DEBUG "skey: stickymode sending key up with code %d\n", skey_keymap[current_keymap][row][column]); input_report_key(skey_dev, skey_keymap[current_keymap][row][column], 0); input_sync(skey_dev); keystate[row][column] = (~keystate_bitmask) & keystate[row][column]; //it was low before, so now it's being toggled on } else { - printk(KERN_INFO "skey: stickymode sending key down with code %d\n", skey_keymap[current_keymap][row][column]); + printk(KERN_DEBUG "skey: stickymode sending key down with code %d\n", skey_keymap[current_keymap][row][column]); input_report_key(skey_dev, skey_keymap[current_keymap][row][column], 1); input_sync(skey_dev); keystate[row][column] = keystate_bitmask | keystate[row][column]; @@ -274,7 +274,7 @@ int processkey(int row, int column, int state) { } //otherwise just send a key down event } else { - printk(KERN_INFO "skey:skey rising edge w/o stickymode, sending key down with keycode %d\n", skey_keymap[current_keymap][row][column]); + printk(KERN_DEBUG "skey:skey rising edge w/o stickymode, sending key down with keycode %d\n", skey_keymap[current_keymap][row][column]); input_report_key(skey_dev, skey_keymap[current_keymap][row][column], 1); input_sync(skey_dev); } @@ -318,7 +318,7 @@ int skey_update_thread (void *data) { while (column_index < 10) { if (gpio_get_value_cansleep(column_pins[column_index])) { processkey(row_index, column_index, 1); - printk(KERN_INFO "skey:button pressed at r:%d,c:%d\n", row_index, column_index); + printk(KERN_DEBUG "skey:button pressed at r:%d,c:%d\n", row_index, column_index); } else { processkey(row_index, column_index, 0); } |