aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/vt/vt.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/tty/vt/vt.c')
-rw-r--r--drivers/tty/vt/vt.c22
1 files changed, 14 insertions, 8 deletions
diff --git a/drivers/tty/vt/vt.c b/drivers/tty/vt/vt.c
index b33b00b386de..f3fbbbca9bde 100644
--- a/drivers/tty/vt/vt.c
+++ b/drivers/tty/vt/vt.c
@@ -156,6 +156,8 @@ static void console_callback(struct work_struct *ignored);
156static void blank_screen_t(unsigned long dummy); 156static void blank_screen_t(unsigned long dummy);
157static void set_palette(struct vc_data *vc); 157static void set_palette(struct vc_data *vc);
158 158
159#define vt_get_kmsg_redirect() vt_kmsg_redirect(-1)
160
159static int printable; /* Is console ready for printing? */ 161static int printable; /* Is console ready for printing? */
160int default_utf8 = true; 162int default_utf8 = true;
161module_param(default_utf8, int, S_IRUGO | S_IWUSR); 163module_param(default_utf8, int, S_IRUGO | S_IWUSR);
@@ -1367,9 +1369,11 @@ static void csi_m(struct vc_data *vc)
1367 rgb_from_256(vc->vc_par[i])); 1369 rgb_from_256(vc->vc_par[i]));
1368 } else if (vc->vc_par[i] == 2 && /* 24 bit */ 1370 } else if (vc->vc_par[i] == 2 && /* 24 bit */
1369 i <= vc->vc_npar + 3) {/* extremely rare */ 1371 i <= vc->vc_npar + 3) {/* extremely rare */
1370 struct rgb c = {r:vc->vc_par[i+1], 1372 struct rgb c = {
1371 g:vc->vc_par[i+2], 1373 .r = vc->vc_par[i + 1],
1372 b:vc->vc_par[i+3]}; 1374 .g = vc->vc_par[i + 2],
1375 .b = vc->vc_par[i + 3],
1376 };
1373 rgb_foreground(vc, c); 1377 rgb_foreground(vc, c);
1374 i += 3; 1378 i += 3;
1375 } 1379 }
@@ -1388,9 +1392,11 @@ static void csi_m(struct vc_data *vc)
1388 rgb_from_256(vc->vc_par[i])); 1392 rgb_from_256(vc->vc_par[i]));
1389 } else if (vc->vc_par[i] == 2 && /* 24 bit */ 1393 } else if (vc->vc_par[i] == 2 && /* 24 bit */
1390 i <= vc->vc_npar + 3) { 1394 i <= vc->vc_npar + 3) {
1391 struct rgb c = {r:vc->vc_par[i+1], 1395 struct rgb c = {
1392 g:vc->vc_par[i+2], 1396 .r = vc->vc_par[i + 1],
1393 b:vc->vc_par[i+3]}; 1397 .g = vc->vc_par[i + 2],
1398 .b = vc->vc_par[i + 3],
1399 };
1394 rgb_background(vc, c); 1400 rgb_background(vc, c);
1395 i += 3; 1401 i += 3;
1396 } 1402 }
@@ -3849,8 +3855,8 @@ void do_unblank_screen(int leaving_gfx)
3849 return; 3855 return;
3850 if (!vc_cons_allocated(fg_console)) { 3856 if (!vc_cons_allocated(fg_console)) {
3851 /* impossible */ 3857 /* impossible */
3852 pr_warning("unblank_screen: tty %d not allocated ??\n", 3858 pr_warn("unblank_screen: tty %d not allocated ??\n",
3853 fg_console+1); 3859 fg_console + 1);
3854 return; 3860 return;
3855 } 3861 }
3856 vc = vc_cons[fg_console].d; 3862 vc = vc_cons[fg_console].d;