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

index d043ea988229e750deb55f17611bd9d56d739631..b20bc6bc7d9640e2722cc12588d8f471ecda8ba0 100644 (file)
@@ -50,8 +50,6 @@
 #include <../include/getsubopt.h>
 #endif
 
-lxc_log_define(lxc_copy_ui, lxc);
-
 enum mnttype {
        LXC_MNT_BIND,
        LXC_MNT_AUFS,
@@ -380,8 +378,6 @@ static int do_clone(struct lxc_container *c, char *newname, char *newpath,
                return -1;
        }
 
-       INFO("Created %s as %s of %s\n", newname, task ? "snapshot" : "copy", c->name);
-
        lxc_container_put(clone);
 
        return 0;
@@ -479,12 +475,10 @@ destroy_and_put:
 static int do_clone_rename(struct lxc_container *c, char *newname)
 {
        if (!c->rename(c, newname)) {
-               ERROR("Error: Renaming container %s to %s failed\n", c->name, newname);
+               fprintf(stderr, "Error: Renaming container %s to %s failed\n", c->name, newname);
                return -1;
        }
 
-       INFO("Renamed container %s to %s\n", c->name, newname);
-
        return 0;
 }
 
@@ -640,7 +634,7 @@ static int parse_aufs_mnt(char *mntstring, enum mnttype type)
        else if (len == 2) /* aufs=src:dest */
                m->dest = construct_path(mntarray[1], false);
        else
-               INFO("Excess elements in mount specification");
+               printf("Excess elements in mount specification\n");
 
        if (!m->dest)
                goto err;
@@ -694,7 +688,7 @@ static int parse_bind_mnt(char *mntstring, enum mnttype type)
                        m->dest = construct_path(mntarray[1], false);
                        m->options = strdup(mntarray[2]);
        } else {
-               INFO("Excess elements in mount specification");
+               printf("Excess elements in mount specification\n");
        }
 
        if (!m->dest)
@@ -763,7 +757,7 @@ static int parse_ovl_mnt(char *mntstring, enum mnttype type)
        else if (len == 2) /* overlay=src:dest */
                m->dest = construct_path(mntarray[1], false);
        else
-               INFO("Excess elements in mount specification");
+               printf("Excess elements in mount specification\n");
 
        if (!m->dest)
                goto err;