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

index fee4d80498510d9d45ff6bcea0ff75995d7bbe25..02f9e25e727ec2a507069a58f57333d75bd92105 100644 (file)
@@ -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;
 
@@ -230,14 +228,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;