[lxc-devel] [lxc/master] tools/lxc_destroy: remove internal logging

AustinReichert on Github lxc-bot at linuxcontainers.org
Wed Nov 29 00:09:03 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/baa306d9/attachment.bin>
-------------- next part --------------
From 525dcf890b5da989068e1894e3db579e3d8fb7e1 Mon Sep 17 00:00:00 2001
From: AustinReichert <austinskyreichert at utexas.edu>
Date: Tue, 28 Nov 2017 03:19:29 -0600
Subject: [PATCH] tools/lxc_destroy: remove internal logging

Signed-off-by: AustinReichert <austinskyreichert at utexas.edu>
---
 src/lxc/tools/lxc_destroy.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/lxc/tools/lxc_destroy.c b/src/lxc/tools/lxc_destroy.c
index 94b0ae785..1c3f7dc50 100644
--- a/src/lxc/tools/lxc_destroy.c
+++ b/src/lxc/tools/lxc_destroy.c
@@ -32,8 +32,6 @@
 #include "lxc.h"
 #include "utils.h"
 
-lxc_log_define(lxc_destroy_ui, lxc);
-
 static int my_parser(struct lxc_arguments* args, int c, char* arg);
 static bool quiet;
 
@@ -233,14 +231,14 @@ static bool do_destroy_with_snapshots(struct lxc_container *c)
 		/* Make sure that the string is \0 terminated. */
 		buf = calloc(fbuf.st_size + 1, sizeof(char));
 		if (!buf) {
-			SYSERROR("failed to allocate memory");
+			fprintf(stderr, "failed to allocate memory\n");
 			close(fd);
 			return false;
 		}
 
 		ret = read(fd, buf, fbuf.st_size);
 		if (ret < 0) {
-			ERROR("could not read %s", path);
+			fprintf(stderr, "could not read %s\n", path);
 			close(fd);
 			free(buf);
 			return false;


More information about the lxc-devel mailing list