2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 14:25:49 +00:00

net: Print link name when restore it

For debug purpose.

 | (00.013002)      1: Restoring link lo type 1
 | (00.013002)      1: Restoring netdev lo idx 1
 | (00.015002)      1: Restoring link venet0 type 4
 | (00.015002)      1: Restoring link eth0 type 2
 | (00.015002)      1: Restoring netdev eth0 idx 3

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Cyrill Gorcunov
2013-09-18 20:43:59 +04:00
committed by Pavel Emelyanov
parent c59ba80335
commit c721a2751f

4
net.c
View File

@@ -272,7 +272,7 @@ int restore_link_parms(NetDeviceEntry *nde, int nlsk)
static int restore_one_link(NetDeviceEntry *nde, int nlsk,
int (*link_info)(NetDeviceEntry *, struct newlink_req *))
{
pr_info("Restoring netdev idx %d\n", nde->ifindex);
pr_info("Restoring netdev %s idx %d\n", nde->name, nde->ifindex);
return do_rtm_link_req(RTM_NEWLINK, nde, nlsk, link_info);
}
@@ -320,7 +320,7 @@ static int veth_link_info(NetDeviceEntry *nde, struct newlink_req *req)
static int restore_link(NetDeviceEntry *nde, int nlsk)
{
pr_info("Restoring link type %d\n", nde->type);
pr_info("Restoring link %s type %d\n", nde->name, nde->type);
switch (nde->type) {
case ND_TYPE__LOOPBACK: