Commit 8cbb8a7b authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

tty: Print rdev and dev pair in case of error

For more detailed error description.

travis-ci: success for Add multiple devpts support
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 5bd350f6
...@@ -1524,7 +1524,8 @@ static int collect_one_tty(void *obj, ProtobufCMessage *msg, struct cr_img *i) ...@@ -1524,7 +1524,8 @@ static int collect_one_tty(void *obj, ProtobufCMessage *msg, struct cr_img *i)
INIT_LIST_HEAD(&info->sibling); INIT_LIST_HEAD(&info->sibling);
info->driver = get_tty_driver(info->tie->rdev, info->tie->dev); info->driver = get_tty_driver(info->tie->rdev, info->tie->dev);
if (info->driver == NULL) { 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; return -1;
} }
info->create = tty_is_master(info); info->create = tty_is_master(info);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment