2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 14:25:49 +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);
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;
}