summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorknolax <1339802534.kk@gmail.com>2017-12-29 19:11:36 -0500
committerknolax <1339802534.kk@gmail.com>2017-12-29 19:11:36 -0500
commite145c5eeffc46f04b4c6ded702695f9347f3a7cd (patch)
treeab17e00119a361e7a121c39980051e29b7c9dbb0
parent138bf8bb674c919bab448320c8ed75eabb73260d (diff)
fixed ld d mismmatch in some of the debug prints
-rw-r--r--skey.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/skey.c b/skey.c
index f4aba5a..8c8cd2e 100644
--- a/skey.c
+++ b/skey.c
@@ -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);
}