[CRIU] [PATCH 2/7] tty: Print rdev and dev pair in case of error

Cyrill Gorcunov gorcunov at openvz.org
Thu Jan 19 14:15:56 PST 2017


For more detailed error description.

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 criu/tty.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/criu/tty.c b/criu/tty.c
index 560c16fe486b..fe249a3caa43 100644
--- a/criu/tty.c
+++ b/criu/tty.c
@@ -1524,7 +1524,8 @@ static int collect_one_tty(void *obj, ProtobufCMessage *msg, struct cr_img *i)
 	INIT_LIST_HEAD(&info->sibling);
 	info->driver = get_tty_driver(info->tie->rdev, info->tie->dev);
 	if (info->driver == NULL) {
-		pr_err("Unable to find a tty driver\n");
+		pr_err("Unable to find a tty driver (rdev %#x dev %#x)\n",
+		       info->tie->rdev, info->tie->dev);
 		return -1;
 	}
 	info->create = tty_is_master(info);
-- 
2.7.4



More information about the CRIU mailing list