]> git.proxmox.com Git - mirror_lxc.git/commitdiff
cgfsng: recursive_destroy()
authorChristian Brauner <christian.brauner@ubuntu.com>
Sat, 17 Feb 2018 18:23:24 +0000 (19:23 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Sat, 17 Feb 2018 18:23:24 +0000 (19:23 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/cgroups/cgfsng.c

index a0cddd42e816abc8ad5b8faa93b1a381c2f8b755..4cbd5c5c82ff2e2e2a83c4dc2a49b23ee8f947a4 100644 (file)
@@ -1534,7 +1534,7 @@ static int recursive_destroy(char *dirname)
                ret = lstat(pathname, &mystat);
                if (ret < 0) {
                        if (!r)
-                               WARN("Failed to stat %s", pathname);
+                               WARN("Failed to stat \"%s\"", pathname);
                        r = -1;
                        goto next;
                }
@@ -1552,16 +1552,14 @@ static int recursive_destroy(char *dirname)
        ret = rmdir(dirname);
        if (ret < 0) {
                if (!r)
-                       WARN("%s - Failed to delete \"%s\"", strerror(errno),
-                            dirname);
+                       WARN("%s - Failed to delete \"%s\"", strerror(errno), dirname);
                r = -1;
        }
 
        ret = closedir(dir);
        if (ret < 0) {
                if (!r)
-                       WARN("%s - Failed to delete \"%s\"", strerror(errno),
-                            dirname);
+                       WARN("%s - Failed to delete \"%s\"", strerror(errno), dirname);
                r = -1;
        }