]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
tools/lxc_unfreeze: removed internal logging
authorAustinReichert <austinskyreichert@utexas.edu>
Tue, 28 Nov 2017 23:38:48 +0000 (17:38 -0600)
committerChristian Brauner <christian.brauner@ubuntu.com>
Sun, 17 Dec 2017 14:47:05 +0000 (15:47 +0100)
Signed-off-by: AustinReichert <austinskyreichert@utexas.edu>
src/lxc/tools/lxc_unfreeze.c

index 394fe0ee060f33f1d7cc0aae434199945a0ed441..c00addb85c7f5c7cbedee3257a727e97dddfb179 100644 (file)
@@ -31,8 +31,6 @@
 #include "log.h"
 #include "arguments.h"
 
-lxc_log_define(lxc_unfreeze_ui, lxc);
-
 static const struct option my_longopts[] = {
        LXC_COMMON_OPTIONS
 };
@@ -77,12 +75,12 @@ int main(int argc, char *argv[])
 
        c = lxc_container_new(my_args.name, my_args.lxcpath[0]);
        if (!c) {
-               ERROR("No such container: %s:%s", my_args.lxcpath[0], my_args.name);
+               fprintf(stderr, "No such container: %s:%s\n", my_args.lxcpath[0], my_args.name);
                exit(EXIT_FAILURE);
        }
 
        if (!c->may_control(c)) {
-               ERROR("Insufficent privileges to control %s:%s", my_args.lxcpath[0], my_args.name);
+               fprintf(stderr, "Insufficent privileges to control %s:%s\n", my_args.lxcpath[0], my_args.name);
                lxc_container_put(c);
                exit(EXIT_FAILURE);
        }
@@ -90,20 +88,20 @@ int main(int argc, char *argv[])
        if (my_args.rcfile) {
                c->clear_config(c);
                if (!c->load_config(c, my_args.rcfile)) {
-                       ERROR("Failed to load rcfile");
+                       fprintf(stderr, "Failed to load rcfile\n");
                        lxc_container_put(c);
                        exit(EXIT_FAILURE);
                }
                c->configfile = strdup(my_args.rcfile);
                if (!c->configfile) {
-                       ERROR("Out of memory setting new config filename");
+                       fprintf(stderr, "Out of memory setting new config filename\n");
                        lxc_container_put(c);
                        exit(EXIT_FAILURE);
                }
        }
 
        if (!c->unfreeze(c)) {
-               ERROR("Failed to unfreeze %s:%s", my_args.lxcpath[0], my_args.name);
+               fprintf(stderr, "Failed to unfreeze %s:%s\n", my_args.lxcpath[0], my_args.name);
                lxc_container_put(c);
                exit(EXIT_FAILURE);
        }