]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
tools/lxc_usernsexec: removed internal logging
authorAustinReichert <austinskyreichert@utexas.edu>
Tue, 28 Nov 2017 23:54:11 +0000 (17:54 -0600)
committerChristian Brauner <christian.brauner@ubuntu.com>
Sun, 17 Dec 2017 14:47:10 +0000 (15:47 +0100)
Signed-off-by: AustinReichert <austinskyreichert@utexas.edu>
src/lxc/tools/lxc_usernsexec.c

index 97ca26bdc23ee3a5d37cb38c59e9bc784247c1c6..ee94e39f642c75372aa0eb268358580084436e43 100644 (file)
@@ -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));
                }
        }