From 72e2c30726e83ff85052caa268e23ff3d17b2f73 Mon Sep 17 00:00:00 2001 From: AustinReichert Date: Tue, 28 Nov 2017 03:14:54 -0600 Subject: [PATCH] tools/lxc_create: remove internal logging Signed-off-by: AustinReichert --- src/lxc/tools/lxc_create.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/lxc/tools/lxc_create.c b/src/lxc/tools/lxc_create.c index f791f7995..f702c2ba7 100644 --- a/src/lxc/tools/lxc_create.c +++ b/src/lxc/tools/lxc_create.c @@ -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); } @@ -326,12 +324,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); } -- 2.47.2