Unverified Commit 0d34bf7a by AustinReichert Committed by Christian Brauner

tools/lxc_destroy: remove internal logging

parent 95792a3b
...@@ -32,8 +32,6 @@ ...@@ -32,8 +32,6 @@
#include "lxc.h" #include "lxc.h"
#include "utils.h" #include "utils.h"
lxc_log_define(lxc_destroy_ui, lxc);
static int my_parser(struct lxc_arguments* args, int c, char* arg); static int my_parser(struct lxc_arguments* args, int c, char* arg);
static bool quiet; static bool quiet;
...@@ -230,14 +228,14 @@ static bool do_destroy_with_snapshots(struct lxc_container *c) ...@@ -230,14 +228,14 @@ static bool do_destroy_with_snapshots(struct lxc_container *c)
/* Make sure that the string is \0 terminated. */ /* Make sure that the string is \0 terminated. */
buf = calloc(fbuf.st_size + 1, sizeof(char)); buf = calloc(fbuf.st_size + 1, sizeof(char));
if (!buf) { if (!buf) {
SYSERROR("failed to allocate memory"); fprintf(stderr, "failed to allocate memory\n");
close(fd); close(fd);
return false; return false;
} }
ret = read(fd, buf, fbuf.st_size); ret = read(fd, buf, fbuf.st_size);
if (ret < 0) { if (ret < 0) {
ERROR("could not read %s", path); fprintf(stderr, "could not read %s\n", path);
close(fd); close(fd);
free(buf); free(buf);
return false; return false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment