[lxc-devel] [lxc/master] tools/lxc_usernsexec: removed internal logging
AustinReichert on Github
lxc-bot at linuxcontainers.org
Tue Nov 28 23:58:52 UTC 2017
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 361 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20171128/1f198dd4/attachment.bin>
-------------- next part --------------
From 3eaff0ba584c32110d6f7aa887b94ef3f63cade0 Mon Sep 17 00:00:00 2001
From: AustinReichert <austinskyreichert at utexas.edu>
Date: Tue, 28 Nov 2017 17:54:11 -0600
Subject: [PATCH] tools/lxc_usernsexec: removed internal logging
Signed-off-by: AustinReichert <austinskyreichert at utexas.edu>
---
src/lxc/tools/lxc_usernsexec.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/lxc/tools/lxc_usernsexec.c b/src/lxc/tools/lxc_usernsexec.c
index acba38da6..72d4a005b 100644
--- a/src/lxc/tools/lxc_usernsexec.c
+++ b/src/lxc/tools/lxc_usernsexec.c
@@ -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;
}
}
@@ -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));
}
}
More information about the lxc-devel
mailing list