diff options
| -rw-r--r-- | drivers/tty/vt/vt.c | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/drivers/tty/vt/vt.c b/drivers/tty/vt/vt.c index ca55004a639e..5e41fac5816f 100644 --- a/drivers/tty/vt/vt.c +++ b/drivers/tty/vt/vt.c | |||
| @@ -2204,7 +2204,7 @@ static int do_con_write(struct tty_struct *tty, const unsigned char *buf, int co | |||
| 2204 | console_lock(); | 2204 | console_lock(); |
| 2205 | vc = tty->driver_data; | 2205 | vc = tty->driver_data; |
| 2206 | if (vc == NULL) { | 2206 | if (vc == NULL) { |
| 2207 | printk(KERN_ERR "vt: argh, driver_data is NULL !\n"); | 2207 | pr_err("vt: argh, driver_data is NULL !\n"); |
| 2208 | console_unlock(); | 2208 | console_unlock(); |
| 2209 | return 0; | 2209 | return 0; |
| 2210 | } | 2210 | } |
| @@ -3189,20 +3189,21 @@ static int do_bind_con_driver(const struct consw *csw, int first, int last, | |||
| 3189 | 3189 | ||
| 3190 | pr_info("Console: switching "); | 3190 | pr_info("Console: switching "); |
| 3191 | if (!deflt) | 3191 | if (!deflt) |
| 3192 | printk(KERN_CONT "consoles %d-%d ", first+1, last+1); | 3192 | pr_cont("consoles %d-%d ", first + 1, last + 1); |
| 3193 | if (j >= 0) { | 3193 | if (j >= 0) { |
| 3194 | struct vc_data *vc = vc_cons[j].d; | 3194 | struct vc_data *vc = vc_cons[j].d; |
| 3195 | 3195 | ||
| 3196 | printk(KERN_CONT "to %s %s %dx%d\n", | 3196 | pr_cont("to %s %s %dx%d\n", |
| 3197 | vc->vc_can_do_color ? "colour" : "mono", | 3197 | vc->vc_can_do_color ? "colour" : "mono", |
| 3198 | desc, vc->vc_cols, vc->vc_rows); | 3198 | desc, vc->vc_cols, vc->vc_rows); |
| 3199 | 3199 | ||
| 3200 | if (k >= 0) { | 3200 | if (k >= 0) { |
| 3201 | vc = vc_cons[k].d; | 3201 | vc = vc_cons[k].d; |
| 3202 | update_screen(vc); | 3202 | update_screen(vc); |
| 3203 | } | 3203 | } |
| 3204 | } else | 3204 | } else { |
| 3205 | printk(KERN_CONT "to %s\n", desc); | 3205 | pr_cont("to %s\n", desc); |
| 3206 | } | ||
| 3206 | 3207 | ||
| 3207 | retval = 0; | 3208 | retval = 0; |
| 3208 | err: | 3209 | err: |
| @@ -3621,9 +3622,8 @@ static int do_register_con_driver(const struct consw *csw, int first, int last) | |||
| 3621 | con_driver, con_dev_groups, | 3622 | con_driver, con_dev_groups, |
| 3622 | "vtcon%i", con_driver->node); | 3623 | "vtcon%i", con_driver->node); |
| 3623 | if (IS_ERR(con_driver->dev)) { | 3624 | if (IS_ERR(con_driver->dev)) { |
| 3624 | printk(KERN_WARNING "Unable to create device for %s; " | 3625 | pr_warn("Unable to create device for %s; errno = %ld\n", |
| 3625 | "errno = %ld\n", con_driver->desc, | 3626 | con_driver->desc, PTR_ERR(con_driver->dev)); |
| 3626 | PTR_ERR(con_driver->dev)); | ||
| 3627 | con_driver->dev = NULL; | 3627 | con_driver->dev = NULL; |
| 3628 | } else { | 3628 | } else { |
| 3629 | vtconsole_init_device(con_driver); | 3629 | vtconsole_init_device(con_driver); |
| @@ -3760,8 +3760,8 @@ static int __init vtconsole_class_init(void) | |||
| 3760 | 3760 | ||
| 3761 | vtconsole_class = class_create(THIS_MODULE, "vtconsole"); | 3761 | vtconsole_class = class_create(THIS_MODULE, "vtconsole"); |
| 3762 | if (IS_ERR(vtconsole_class)) { | 3762 | if (IS_ERR(vtconsole_class)) { |
| 3763 | printk(KERN_WARNING "Unable to create vt console class; " | 3763 | pr_warn("Unable to create vt console class; errno = %ld\n", |
| 3764 | "errno = %ld\n", PTR_ERR(vtconsole_class)); | 3764 | PTR_ERR(vtconsole_class)); |
| 3765 | vtconsole_class = NULL; | 3765 | vtconsole_class = NULL; |
| 3766 | } | 3766 | } |
| 3767 | 3767 | ||
| @@ -3777,9 +3777,8 @@ static int __init vtconsole_class_init(void) | |||
| 3777 | "vtcon%i", con->node); | 3777 | "vtcon%i", con->node); |
| 3778 | 3778 | ||
| 3779 | if (IS_ERR(con->dev)) { | 3779 | if (IS_ERR(con->dev)) { |
| 3780 | printk(KERN_WARNING "Unable to create " | 3780 | pr_warn("Unable to create device for %s; errno = %ld\n", |
| 3781 | "device for %s; errno = %ld\n", | 3781 | con->desc, PTR_ERR(con->dev)); |
| 3782 | con->desc, PTR_ERR(con->dev)); | ||
| 3783 | con->dev = NULL; | 3782 | con->dev = NULL; |
| 3784 | } else { | 3783 | } else { |
| 3785 | vtconsole_init_device(con); | 3784 | vtconsole_init_device(con); |
