From: Dhaval Giani Date: Fri, 26 Mar 2010 14:04:35 +0000 (+0100) Subject: libcgroup: Fix up coding style in wrapper.c X-Git-Tag: v0.36~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d6cb02fd4f0fcd08f5904dd3ae5d62df72427552;p=thirdparty%2Flibcgroup.git libcgroup: Fix up coding style in wrapper.c Pre: total: 0 errors, 3 warnings, 638 lines checked Post: total: 0 errors, 0 warnings, 640 lines checked Signed-off-by: Dhaval Giani --- diff --git a/src/wrapper.c b/src/wrapper.c index 99d2a688..7d2f2bb0 100644 --- a/src/wrapper.c +++ b/src/wrapper.c @@ -235,9 +235,11 @@ int cgroup_add_value_bool(struct cgroup_controller *controller, strncpy(cntl_value->name, name, sizeof(cntl_value->name)); if (value) - ret = snprintf(cntl_value->value, sizeof(cntl_value->value), "1"); + ret = snprintf(cntl_value->value, + sizeof(cntl_value->value), "1"); else - ret = snprintf(cntl_value->value, sizeof(cntl_value->value), "0"); + ret = snprintf(cntl_value->value, + sizeof(cntl_value->value), "0"); if (ret >= sizeof(cntl_value->value)) return ECGINVAL; @@ -581,7 +583,7 @@ struct cgroup *create_cgroup_from_name_value_pairs(const char *name, for (i = 0; i < nv_number; i++) { if ((strchr(name_value[i].name, '.')) == NULL) { - fprintf(stderr, "wrong -r parameter (%s=%s)\n", + fprintf(stderr, "wrong -r parameter (%s=%s)\n", name_value[i].name, name_value[i].value); goto scgroup_err; }