2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-09-02 15:25:21 +00:00

tty: Use tty_name in prints

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Pavel Emelyanov
2015-02-18 18:26:29 +03:00
parent 9f0e6c0e59
commit 3a25abdad2

3
tty.c
View File

@@ -879,8 +879,7 @@ static int open_simple_tty(struct tty_info *info)
fd = open_pty_reg(info->reg_d, info->tfe->flags); fd = open_pty_reg(info->reg_d, info->tfe->flags);
if (fd < 0) { if (fd < 0) {
pr_perror("Can't open %s %x", pr_perror("Can't open %s %x",
info->type == TTY_TYPE_CONSOLE ? "console" : "virtual terminal", tty_name(info->type), info->tfe->id);
info->tfe->id);
return -1; return -1;
} }