summaryrefslogtreecommitdiff
path: root/skey.c
diff options
context:
space:
mode:
Diffstat (limited to 'skey.c')
-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);
}