Commit 02227d87 authored by Pavel Emelyanov's avatar Pavel Emelyanov

ns: Extend ns dumping log messages with ids and pids

Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 891acca9
...@@ -359,19 +359,23 @@ static int do_dump_namespaces(struct ns_id *ns) ...@@ -359,19 +359,23 @@ static int do_dump_namespaces(struct ns_id *ns)
ret = 0; ret = 0;
break; break;
case CLONE_NEWUTS: case CLONE_NEWUTS:
pr_info("Dump UTS namespace\n"); pr_info("Dump UTS namespace %d via %d\n",
ns->id, ns->pid);
ret = dump_uts_ns(ns->pid, ns->id); ret = dump_uts_ns(ns->pid, ns->id);
break; break;
case CLONE_NEWIPC: case CLONE_NEWIPC:
pr_info("Dump IPC namespace\n"); pr_info("Dump IPC namespace %d via %d\n",
ns->id, ns->pid);
ret = dump_ipc_ns(ns->pid, ns->id); ret = dump_ipc_ns(ns->pid, ns->id);
break; break;
case CLONE_NEWNS: case CLONE_NEWNS:
pr_info("Dump MNT namespace (mountpoints)\n"); pr_info("Dump MNT namespace (mountpoints) %d via %d\n",
ns->id, ns->pid);
ret = dump_mnt_ns(ns->pid, ns->id); ret = dump_mnt_ns(ns->pid, ns->id);
break; break;
case CLONE_NEWNET: case CLONE_NEWNET:
pr_info("Dump NET namespace info\n"); pr_info("Dump NET namespace info %d via %d\n",
ns->id, ns->pid);
ret = dump_net_ns(ns->pid, ns->id); ret = dump_net_ns(ns->pid, ns->id);
break; break;
default: default:
......
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