[CRIU] [PATCH 01/11] tty: Use tty_name in prints
    Pavel Emelyanov 
    xemul at parallels.com
       
    Wed Feb 18 07:26:29 PST 2015
    
    
  
Signed-off-by: Pavel Emelyanov <xemul at parallels.com>
---
 tty.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/tty.c b/tty.c
index 01d8c3e..f3afc9c 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;
 	}
 
-- 
1.8.4.2
    
    
More information about the CRIU
mailing list