From e145c5eeffc46f04b4c6ded702695f9347f3a7cd Mon Sep 17 00:00:00 2001 From: knolax <1339802534.kk@gmail.com> Date: Fri, 29 Dec 2017 19:11:36 -0500 Subject: fixed ld d mismmatch in some of the debug prints --- skey.c | 8 ++++---- 1 file 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); } -- cgit v1.1