]> git.proxmox.com Git - mirror_lxc.git/commitdiff
Add some missing newlines
authorStéphane Graber <stgraber@ubuntu.com>
Tue, 18 Feb 2014 01:53:43 +0000 (20:53 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Tue, 18 Feb 2014 01:53:43 +0000 (20:53 -0500)
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/cgmanager.c
src/lxc/conf.c
src/lxc/lxc_user_nic.c
src/lxc/lxccontainer.c
src/lxc/lxclock.c
src/tests/concurrent.c
src/tests/get_item.c
src/tests/list.c

index 03c94175883a01c967132e7aec05299ce7accca2..73916756c74dc1913870980076c52a0114ac26af 100644 (file)
@@ -61,7 +61,7 @@ static void lock_mutex(pthread_mutex_t *l)
        int ret;
 
        if ((ret = pthread_mutex_lock(l)) != 0) {
-               fprintf(stderr, "pthread_mutex_lock returned:%d %s", ret, strerror(ret));
+               fprintf(stderr, "pthread_mutex_lock returned:%d %s\n", ret, strerror(ret));
                exit(1);
        }
 }
@@ -71,7 +71,7 @@ static void unlock_mutex(pthread_mutex_t *l)
        int ret;
 
        if ((ret = pthread_mutex_unlock(l)) != 0) {
-               fprintf(stderr, "pthread_mutex_unlock returned:%d %s", ret, strerror(ret));
+               fprintf(stderr, "pthread_mutex_unlock returned:%d %s\n", ret, strerror(ret));
                exit(1);
        }
 }
index 175a82f8276198b3d1cac0ae8cc994b62efb3067..8529a438c07b8d8b32e51bf5a36799d707d9e3bc 100644 (file)
@@ -3132,7 +3132,7 @@ static int write_id_mapping(enum idtype idtype, pid_t pid, const char *buf,
 
        ret = snprintf(path, PATH_MAX, "/proc/%d/%cid_map", pid, idtype == ID_TYPE_UID ? 'u' : 'g');
        if (ret < 0 || ret >= PATH_MAX) {
-               fprintf(stderr, "%s: path name too long", __func__);
+               fprintf(stderr, "%s: path name too long\n", __func__);
                return -E2BIG;
        }
        f = fopen(path, "w");
index ce7917725ec110f53057ee9f52372276341ddfd5..a67c63d64e9bf36519ce123db5ceafc14f9e1014 100644 (file)
@@ -219,7 +219,7 @@ static int instanciate_veth(char *n1, char **n2)
         * of a container */
        err = setup_private_host_hw_addr(n1);
        if (err) {
-               fprintf(stderr, "failed to change mac address of host interface '%s' : %s",
+               fprintf(stderr, "failed to change mac address of host interface '%s' : %s\n",
                        n1, strerror(-err));
        }
 
@@ -307,7 +307,7 @@ static bool cull_entries(int fd, char *me, char *t, char *br)
        nic = alloca(100);
 
        if (fstat(fd, &sb) < 0) {
-               fprintf(stderr, "Failed to fstat: %s", strerror(errno));
+               fprintf(stderr, "Failed to fstat: %s\n", strerror(errno));
                return false;
        }
        len = sb.st_size;
@@ -387,7 +387,7 @@ static bool get_nic_if_avail(int fd, char *me, int pid, char *intype, char *br,
                return false;
 
        if (fstat(fd, &sb) < 0) {
-               fprintf(stderr, "Failed to fstat: %s", strerror(errno));
+               fprintf(stderr, "Failed to fstat: %s\n", strerror(errno));
                return false;
        }
        len = sb.st_size;
index 2e9798f128d39fe058c1c59100c80c5e4abd1b0b..b8b11d62f28046787d31963edce3799b27092327 100644 (file)
@@ -3283,7 +3283,7 @@ struct lxc_container *lxc_container_new(const char *name, const char *configpath
                c->config_path = strdup(lxc_global_config_value("lxc.lxcpath"));
 
        if (!c->config_path) {
-               fprintf(stderr, "Out of memory");
+               fprintf(stderr, "Out of memory\n");
                goto err;
        }
 
index e5267c7bc7870ff7ce90ad0033d6d597e8a5cbc1..4f433ca6a4dc4b0b581c16e614c70daaa686bd44 100644 (file)
@@ -76,7 +76,7 @@ static void lock_mutex(pthread_mutex_t *l)
        int ret;
 
        if ((ret = pthread_mutex_lock(l)) != 0) {
-               fprintf(stderr, "pthread_mutex_lock returned:%d %s", ret, strerror(ret));
+               fprintf(stderr, "pthread_mutex_lock returned:%d %s\n", ret, strerror(ret));
                dump_stacktrace();
                exit(1);
        }
@@ -87,7 +87,7 @@ static void unlock_mutex(pthread_mutex_t *l)
        int ret;
 
        if ((ret = pthread_mutex_unlock(l)) != 0) {
-               fprintf(stderr, "pthread_mutex_unlock returned:%d %s", ret, strerror(ret));
+               fprintf(stderr, "pthread_mutex_unlock returned:%d %s\n", ret, strerror(ret));
                dump_stacktrace();
                exit(1);
        }
index 6d899909a8e8f16a0587857139048a852273828f..2d3159bedab5a10df4d90dd6f293b96c6e61579a 100644 (file)
@@ -224,7 +224,7 @@ int main(int argc, char *argv[]) {
                     }
                 }
                 if (args[j].return_code) {
-                    fprintf(stderr, "thread returned error %d", args[j].return_code);
+                    fprintf(stderr, "thread returned error %d\n", args[j].return_code);
                     exit(EXIT_FAILURE);
                 }
             }
index ef427a068c6c2921057fb1bb3e1483977924474c..518dbd19c79423c983ac71334d0c9e85f9b7816c 100644 (file)
@@ -281,22 +281,22 @@ int main(int argc, char *argv[])
        printf("%d: get_config_item (cgroup.devices.devices.allow) returned %d %s\n", __LINE__, ret, v3);
 
        if (!c->clear_config_item(c, "lxc.cgroup")) {
-               fprintf(stderr, "%d: failed clearing lxc.cgroup", __LINE__);
+               fprintf(stderr, "%d: failed clearing lxc.cgroup\n", __LINE__);
                ret = 1;
                goto out;
        }
        if (!c->clear_config_item(c, "lxc.cap.drop")) {
-               fprintf(stderr, "%d: failed clearing lxc.cap.drop", __LINE__);
+               fprintf(stderr, "%d: failed clearing lxc.cap.drop\n", __LINE__);
                ret = 1;
                goto out;
        }
        if (!c->clear_config_item(c, "lxc.mount.entries")) {
-               fprintf(stderr, "%d: failed clearing lxc.mount.entries", __LINE__);
+               fprintf(stderr, "%d: failed clearing lxc.mount.entries\n", __LINE__);
                ret = 1;
                goto out;
        }
        if (!c->clear_config_item(c, "lxc.hook")) {
-               fprintf(stderr, "%d: failed clearing lxc.hook", __LINE__);
+               fprintf(stderr, "%d: failed clearing lxc.hook\n", __LINE__);
                ret = 1;
                goto out;
        }
index 2681e2e801efcbafb1ca09e10aeb3d5c2f5ff398..9641dccbb1350e54483c36e22d97caedc7438277 100644 (file)
@@ -68,7 +68,7 @@ static void test_list_func(const char *lxcpath, const char *type,
                struct lxc_container *c = clist[i];
                printf("%-10s  Got container struct %s, name %s\n", type, c->name, names[i]);
                if (strcmp(c->name, names[i]))
-                       fprintf(stderr, "ERROR: name mismatch!");
+                       fprintf(stderr, "ERROR: name mismatch!\n");
                free(names[i]);
                lxc_container_put(c);
        }