• [PATCH] vt: Use consistent logging style

    From Joe Perches@21:1/5 to All on Mon Oct 2 22:50:07 2017
    vt has a mixture of pr_<level> and printk.
    Convert to using only pr_<level>.

    Miscellanea:

    o Coalesce formats
    o Realign arguments
    o Add missing braces around an if/else with the printk conversion

    Signed-off-by: Joe Perches <joe@perches.com>
    ---
    drivers/tty/vt/vt.c | 29 ++++++++++++++---------------
    1 file 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
    console_lock();
    vc = tty->driver_data;
    if (vc == NULL) {
    - printk(KERN_ERR "vt: argh, driver_data is NULL !\n");
    + pr_err("vt: argh, driver_data is NULL !\n");
    console_unlock();
    return 0;
    }
    @@ -3189,20 +3189,21 @@ static int do_bind_con_driver(const struct consw *csw, int first, int last,

    pr_info("Console: switching ");
    if (!deflt)
    - printk(KERN_CONT "consoles %d-%d ", first+1, last+1);
    + pr_cont("consoles %d-%d ", first + 1, last + 1);
    if (j >= 0) {
    struct vc_data *vc = vc_cons[j].d;

    - printk(KERN_CONT "to %s %s %dx%d\n",
    - vc->vc_can_do_color ? "colour" : "mono",
    - desc, vc->vc_c