From 3a25abdad287dd9f8ce57b6e660210e6b68ac79e Mon Sep 17 00:00:00 2001 From: Pavel Emelyanov Date: Wed, 18 Feb 2015 18:26:29 +0300 Subject: [PATCH] tty: Use tty_name in prints Signed-off-by: Pavel Emelyanov --- tty.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tty.c b/tty.c index 38a95ec99..474bd3380 100644 --- a/tty.c +++ b/tty.c @@ -879,8 +879,7 @@ static int open_simple_tty(struct tty_info *info) fd = open_pty_reg(info->reg_d, info->tfe->flags); if (fd < 0) { pr_perror("Can't open %s %x", - info->type == TTY_TYPE_CONSOLE ? "console" : "virtual terminal", - info->tfe->id); + tty_name(info->type), info->tfe->id); return -1; }