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:
3
tty.c
3
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);
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user