diff options
author | knolax <1339802534.kk@gmail.com> | 2017-12-29 19:11:36 -0500 |
---|---|---|
committer | knolax <1339802534.kk@gmail.com> | 2017-12-29 19:11:36 -0500 |
commit | e145c5eeffc46f04b4c6ded702695f9347f3a7cd (patch) | |
tree | ab17e00119a361e7a121c39980051e29b7c9dbb0 /skey.c | |
parent | 138bf8bb674c919bab448320c8ed75eabb73260d (diff) |
fixed ld d mismmatch in some of the debug prints
Diffstat (limited to 'skey.c')
-rw-r--r-- | skey.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -180,7 +180,7 @@ int processkey(int row, int column, int state) { if ((KEYSTATE_PHYS & keystate[row][column]) && !state) { if(DEBUGMODE){printk(KERN_DEBUG "skey: falling edge detected for r:%d,c:%d\n", row, column);} if (!stickymode) { - if(DEBUGMODE){printk(KERN_DEBUG "skey: stickymode off with falling edge, reporting key up with keycode %d\n", skey_keymap[current_keymap][row][column]);} + if(DEBUGMODE){printk(KERN_DEBUG "skey: stickymode off with falling edge, reporting key up with keycode %ld\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); @@ -263,14 +263,14 @@ int processkey(int row, int column, int state) { if(DEBUGMODE){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) { - if(DEBUGMODE){printk(KERN_DEBUG "skey: stickymode sending key up with code %d\n", skey_keymap[current_keymap][row][column]);} + if(DEBUGMODE){printk(KERN_DEBUG "skey: stickymode sending key up with code %ld\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 { - if(DEBUGMODE){printk(KERN_DEBUG "skey: stickymode sending key down with code %d\n", skey_keymap[current_keymap][row][column]);} + if(DEBUGMODE){printk(KERN_DEBUG "skey: stickymode sending key down with code %ld\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]; @@ -278,7 +278,7 @@ int processkey(int row, int column, int state) { } //otherwise just send a key down event } else { - if(DEBUGMODE){printk(KERN_DEBUG "skey:skey rising edge w/o stickymode, sending key down with keycode %d\n", skey_keymap[current_keymap][row][column]);} + if(DEBUGMODE){printk(KERN_DEBUG "skey:skey rising edge w/o stickymode, sending key down with keycode %ld\n", skey_keymap[current_keymap][row][column]);} input_report_key(skey_dev, skey_keymap[current_keymap][row][column], 1); input_sync(skey_dev); } |