aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/vt
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2014-11-10 01:46:35 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-11-25 20:06:38 -0500
commite620e54884ceb983c38f979a22fd04ae0820c725 (patch)
treede7c5797654cc2c9b476cc496fdb70611e464906 /drivers/tty/vt
parent483e91a503064c104326a6bb55d4505ff467cd92 (diff)
tty: pr_warning->pr_warn and logging neatening
Convert the pr_warning to the more common pr_warn. Other miscellanea: o Convert unusual PR_FMT define and uses to pr_fmt o Remove unnecessary OOM message o Fix grammar in an error message o Convert a pr_warning with a KERN_ERR to pr_err Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/vt')
-rw-r--r--drivers/tty/vt/keyboard.c6
-rw-r--r--drivers/tty/vt/vt.c4
2 files changed, 5 insertions, 5 deletions
diff --git a/drivers/tty/vt/keyboard.c b/drivers/tty/vt/keyboard.c
index c039cfea5b11..8a89f6e7715d 100644
--- a/drivers/tty/vt/keyboard.c
+++ b/drivers/tty/vt/keyboard.c
@@ -924,7 +924,7 @@ static void k_brl(struct vc_data *vc, unsigned char value, char up_flag)
924 924
925 if (kbd->kbdmode != VC_UNICODE) { 925 if (kbd->kbdmode != VC_UNICODE) {
926 if (!up_flag) 926 if (!up_flag)
927 pr_warning("keyboard mode must be unicode for braille patterns\n"); 927 pr_warn("keyboard mode must be unicode for braille patterns\n");
928 return; 928 return;
929 } 929 }
930 930
@@ -1253,8 +1253,8 @@ static void kbd_keycode(unsigned int keycode, int down, int hw_raw)
1253 if (raw_mode && !hw_raw) 1253 if (raw_mode && !hw_raw)
1254 if (emulate_raw(vc, keycode, !down << 7)) 1254 if (emulate_raw(vc, keycode, !down << 7))
1255 if (keycode < BTN_MISC && printk_ratelimit()) 1255 if (keycode < BTN_MISC && printk_ratelimit())
1256 pr_warning("can't emulate rawmode for keycode %d\n", 1256 pr_warn("can't emulate rawmode for keycode %d\n",
1257 keycode); 1257 keycode);
1258 1258
1259#ifdef CONFIG_SPARC 1259#ifdef CONFIG_SPARC
1260 if (keycode == KEY_A && sparc_l1_a_state) { 1260 if (keycode == KEY_A && sparc_l1_a_state) {
diff --git a/drivers/tty/vt/vt.c b/drivers/tty/vt/vt.c
index ed0136519422..f3fbbbca9bde 100644
--- a/drivers/tty/vt/vt.c
+++ b/drivers/tty/vt/vt.c
@@ -3855,8 +3855,8 @@ void do_unblank_screen(int leaving_gfx)
3855 return; 3855 return;
3856 if (!vc_cons_allocated(fg_console)) { 3856 if (!vc_cons_allocated(fg_console)) {
3857 /* impossible */ 3857 /* impossible */
3858 pr_warning("unblank_screen: tty %d not allocated ??\n", 3858 pr_warn("unblank_screen: tty %d not allocated ??\n",
3859 fg_console+1); 3859 fg_console + 1);
3860 return; 3860 return;
3861 } 3861 }
3862 vc = vc_cons[fg_console].d; 3862 vc = vc_cons[fg_console].d;