[lxc-devel] [lxc/master] tools/lxc_create: remove internal logging
AustinReichert on Github
lxc-bot at linuxcontainers.org
Wed Nov 29 00:09:28 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/20171129/88cf7390/attachment.bin>
-------------- next part --------------
From 72e2c30726e83ff85052caa268e23ff3d17b2f73 Mon Sep 17 00:00:00 2001
From: AustinReichert <austinskyreichert at utexas.edu>
Date: Tue, 28 Nov 2017 03:14:54 -0600
Subject: [PATCH] tools/lxc_create: remove internal logging
Signed-off-by: AustinReichert <austinskyreichert at utexas.edu>
---
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);
}
More information about the lxc-devel
mailing list