Skip to content

Commit

Permalink
tools/lxc_destroy: remove internal logging
Browse files Browse the repository at this point in the history
Signed-off-by: AustinReichert <austinskyreichert@utexas.edu>
  • Loading branch information
AustinReichert committed Nov 28, 2017
1 parent 8a0a156 commit 525dcf8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/lxc/tools/lxc_destroy.c
Expand Up @@ -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;

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 525dcf8

Please sign in to comment.