diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2010-03-22 01:31:26 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2010-04-14 02:26:14 -0400 |
commit | 9272e9a2f8872a0f9fb15aaa10f2a993524343e0 (patch) | |
tree | 83c1d70fde6b05780d264d42c1902a78cfa00a98 /drivers/char | |
parent | 97f5f0cd8cd0a05449cbb77d1e6f02e026875802 (diff) |
Input: keyboard - switch to using pr_err() and friends
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/char')
-rw-r--r-- | drivers/char/keyboard.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/drivers/char/keyboard.c b/drivers/char/keyboard.c index 50f6c01f44ec..157f23ad434f 100644 --- a/drivers/char/keyboard.c +++ b/drivers/char/keyboard.c | |||
@@ -24,6 +24,8 @@ | |||
24 | * 21-08-02: Converted to input API, major cleanup. (Vojtech Pavlik) | 24 | * 21-08-02: Converted to input API, major cleanup. (Vojtech Pavlik) |
25 | */ | 25 | */ |
26 | 26 | ||
27 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
28 | |||
27 | #include <linux/consolemap.h> | 29 | #include <linux/consolemap.h> |
28 | #include <linux/module.h> | 30 | #include <linux/module.h> |
29 | #include <linux/sched.h> | 31 | #include <linux/sched.h> |
@@ -639,7 +641,7 @@ static void k_spec(struct vc_data *vc, unsigned char value, char up_flag) | |||
639 | 641 | ||
640 | static void k_lowercase(struct vc_data *vc, unsigned char value, char up_flag) | 642 | static void k_lowercase(struct vc_data *vc, unsigned char value, char up_flag) |
641 | { | 643 | { |
642 | printk(KERN_ERR "keyboard.c: k_lowercase was called - impossible\n"); | 644 | pr_err("k_lowercase was called - impossible\n"); |
643 | } | 645 | } |
644 | 646 | ||
645 | static void k_unicode(struct vc_data *vc, unsigned int value, char up_flag) | 647 | static void k_unicode(struct vc_data *vc, unsigned int value, char up_flag) |
@@ -714,7 +716,7 @@ static void k_fn(struct vc_data *vc, unsigned char value, char up_flag) | |||
714 | if (func_table[value]) | 716 | if (func_table[value]) |
715 | puts_queue(vc, func_table[value]); | 717 | puts_queue(vc, func_table[value]); |
716 | } else | 718 | } else |
717 | printk(KERN_ERR "k_fn called with value=%d\n", value); | 719 | pr_err("k_fn called with value=%d\n", value); |
718 | } | 720 | } |
719 | 721 | ||
720 | static void k_cur(struct vc_data *vc, unsigned char value, char up_flag) | 722 | static void k_cur(struct vc_data *vc, unsigned char value, char up_flag) |
@@ -912,7 +914,7 @@ static void k_brl(struct vc_data *vc, unsigned char value, char up_flag) | |||
912 | 914 | ||
913 | if (kbd->kbdmode != VC_UNICODE) { | 915 | if (kbd->kbdmode != VC_UNICODE) { |
914 | if (!up_flag) | 916 | if (!up_flag) |
915 | printk("keyboard mode must be unicode for braille patterns\n"); | 917 | pr_warning("keyboard mode must be unicode for braille patterns\n"); |
916 | return; | 918 | return; |
917 | } | 919 | } |
918 | 920 | ||
@@ -1169,7 +1171,8 @@ static void kbd_keycode(unsigned int keycode, int down, int hw_raw) | |||
1169 | if ((raw_mode = (kbd->kbdmode == VC_RAW)) && !hw_raw) | 1171 | if ((raw_mode = (kbd->kbdmode == VC_RAW)) && !hw_raw) |
1170 | if (emulate_raw(vc, keycode, !down << 7)) | 1172 | if (emulate_raw(vc, keycode, !down << 7)) |
1171 | if (keycode < BTN_MISC && printk_ratelimit()) | 1173 | if (keycode < BTN_MISC && printk_ratelimit()) |
1172 | printk(KERN_WARNING "keyboard.c: can't emulate rawmode for keycode %d\n", keycode); | 1174 | pr_warning("can't emulate rawmode for keycode %d\n", |
1175 | keycode); | ||
1173 | 1176 | ||
1174 | #ifdef CONFIG_SPARC | 1177 | #ifdef CONFIG_SPARC |
1175 | if (keycode == KEY_A && sparc_l1_a_state) { | 1178 | if (keycode == KEY_A && sparc_l1_a_state) { |