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

Cyrill Gorcunov gorcunov at openvz.org
Sat Jan 21 05:11:22 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 162e70ebcba6..ef0a19b0000b 100644
--- a/criu/tty.c
+++ b/criu/tty.c
@@ -1514,7 +1514,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