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

index e34db8639c44107e4ee10486a2b0e767e60a45f0..2a955c2c2b3b81d296a35993a795cba85d9c9214 100644 (file)
@@ -33,8 +33,6 @@
 #include "storage_utils.h"
 #include "utils.h"
 
-lxc_log_define(lxc_create_ui, lxc);
-
 static uint64_t get_fssize(char *s)
 {
        uint64_t ret;
@@ -124,7 +122,7 @@ static void create_helpfn(const struct lxc_arguments *args)
        argv[2] = NULL;
 
        execv(path, argv);
-       ERROR("Error executing %s -h", path);
+       fprintf(stderr, "Error executing %s -h\n", path);
        exit(EXIT_FAILURE);
 }
 
@@ -323,12 +321,11 @@ int main(int argc, char *argv[])
                flags = LXC_CREATE_QUIET;
 
        if (!c->create(c, my_args.template, my_args.bdevtype, &spec, flags, &argv[optind])) {
-               ERROR("Error creating container %s", c->name);
+               fprintf(stderr, "Error creating container %s\n", c->name);
                lxc_container_put(c);
                exit(EXIT_FAILURE);
        }
 
        lxc_container_put(c);
-       INFO("container %s created", c->name);
        exit(EXIT_SUCCESS);
 }