Skip to content

Commit

Permalink
tools/lxc_usernsexec: removed internal logging
Browse files Browse the repository at this point in the history
Signed-off-by: AustinReichert <austinskyreichert@utexas.edu>
  • Loading branch information
AustinReichert authored and Christian Brauner committed Dec 17, 2017
1 parent b55e5e3 commit fb697f2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lxc/tools/lxc_usernsexec.c
Expand Up @@ -124,7 +124,7 @@ static int do_child(void *vargv)
}
if (detect_shared_rootfs()) {
if (mount(NULL, "/", NULL, MS_SLAVE|MS_REC, NULL)) {
printf("Failed to make / rslave");
printf("Failed to make / rslave\n");
return -1;
}
}
Expand Down Expand Up @@ -286,12 +286,12 @@ int main(int argc, char *argv[])
}
ret = readlink("/proc/self/fd/1", ttyname1, sizeof(ttyname1));
if (ret < 0) {
printf("Warning: unable to open stdout, continuing.");
printf("Warning: unable to open stdout, continuing.\n");
memset(ttyname1, '\0', sizeof(ttyname1));
}
ret = readlink("/proc/self/fd/2", ttyname2, sizeof(ttyname2));
if (ret < 0) {
printf("Warning: unable to open stderr, continuing.");
printf("Warning: unable to open stderr, continuing.\n");
memset(ttyname2, '\0', sizeof(ttyname2));
}
}
Expand Down

0 comments on commit fb697f2

Please sign in to comment.