]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Remove trailing newlines in log 880/head
authorStéphane Graber <stgraber@ubuntu.com>
Tue, 8 Mar 2016 14:50:53 +0000 (09:50 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Tue, 8 Mar 2016 14:51:01 +0000 (09:51 -0500)
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/cgfsng.c

index aaa03b53430e4a79c8536feb9f65dc461edbb4e4..0622a8186445bf13df532bed6f064dfd91ee4ec9 100644 (file)
@@ -830,7 +830,7 @@ static int cgroup_rmdir(char *dirname)
 
                if (lstat(pathname, &mystat)) {
                        if (!r)
-                               WARN("failed to stat %s\n", pathname);
+                               WARN("failed to stat %s", pathname);
                        r = -1;
                        goto next;
                }
@@ -880,7 +880,7 @@ void recursive_destroy(char *path, struct lxc_conf *conf)
                r = cgroup_rmdir(path);
 
        if (r < 0)
-               ERROR("Error destroying %s\n", path);
+               ERROR("Error destroying %s", path);
 }
 
 static void cgfsng_destroy(void *hdata, struct lxc_conf *conf)
@@ -1009,7 +1009,7 @@ static bool cgfsng_enter(void *hdata, pid_t pid)
                char *fullpath = must_make_path(d->hierarchies[i]->fullcgpath,
                                                "cgroup.procs", NULL);
                if (lxc_write_to_file(fullpath, pidstr, len, false) != 0) {
-                       ERROR("Failed to enter %s\n", fullpath);
+                       ERROR("Failed to enter %s", fullpath);
                        free(fullpath);
                        return false;
                }
@@ -1178,7 +1178,7 @@ static bool cgfsng_escape(void *hdata)
                                                d->hierarchies[i]->base_cgroup,
                                                "cgroup.procs", NULL);
                if (lxc_write_to_file(fullpath, "0", 2, false) != 0) {
-                       ERROR("Failed to enter %s\n", fullpath);
+                       ERROR("Failed to enter %s", fullpath);
                        free(fullpath);
                        return false;
                }
@@ -1385,7 +1385,7 @@ static bool cgfsng_setup_limits(void *hdata, struct lxc_list *cgroup_settings,
        if (do_devices) {
                h = get_hierarchy(d, "devices");
                if (!h) {
-                       ERROR("No devices cgroup setup for %s\n", d->name);
+                       ERROR("No devices cgroup setup for %s", d->name);
                        return false;
                }
                listpath = must_make_path(h->fullcgpath, "devices.list", NULL);