Commit 3a25abda authored by Pavel Emelyanov's avatar Pavel Emelyanov

tty: Use tty_name in prints

Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 9f0e6c0e
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment