From: Taras Chornyi Date: Tue, 14 Nov 2017 17:21:36 +0000 (+0000) Subject: Fixed code styling X-Git-Tag: collectd-5.8.0~12^2~2 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=6f5b7579b9ebe88da901b8ba5c50fc3793d2be73;p=collectd.git Fixed code styling Signed-off-by: Taras Chornyi --- diff --git a/src/mcelog.c b/src/mcelog.c index 8ef5c23d..26494887 100644 --- a/src/mcelog.c +++ b/src/mcelog.c @@ -75,12 +75,12 @@ struct socket_adapter_s { typedef struct mcelog_memory_rec_s { int corrected_err_total; /* x total*/ int corrected_err_timed; /* x in 24h*/ - char corrected_err_timed_period[DATA_MAX_NAME_LEN/2]; + char corrected_err_timed_period[DATA_MAX_NAME_LEN / 2]; int uncorrected_err_total; /* x total*/ int uncorrected_err_timed; /* x in 24h*/ - char uncorrected_err_timed_period[DATA_MAX_NAME_LEN/2]; - char location[DATA_MAX_NAME_LEN/2]; /* SOCKET x CHANNEL x DIMM x*/ - char dimm_name[DATA_MAX_NAME_LEN/2]; /* DMI_NAME "DIMM_F1" */ + char uncorrected_err_timed_period[DATA_MAX_NAME_LEN / 2]; + char location[DATA_MAX_NAME_LEN / 2]; /* SOCKET x CHANNEL x DIMM x*/ + char dimm_name[DATA_MAX_NAME_LEN / 2]; /* DMI_NAME "DIMM_F1" */ } mcelog_memory_rec_t; static int socket_close(socket_adapter_t *self); diff --git a/src/target_notification.c b/src/target_notification.c index 747bcc22..f83a904a 100644 --- a/src/target_notification.c +++ b/src/target_notification.c @@ -222,7 +222,8 @@ static int tn_invoke(const data_set_t *ds, value_list_t *vl, /* {{{ */ char value_str[DATA_MAX_NAME_LEN]; const char *format = "%%{ds:%.*s}"; - snprintf(template, sizeof(template), format, DATA_MAX_NAME_LEN - strlen(format), ds->ds[i].name); + snprintf(template, sizeof(template), format, + DATA_MAX_NAME_LEN - strlen(format), ds->ds[i].name); if (ds->ds[i].type != DS_TYPE_GAUGE) { if ((rates == NULL) && (rates_failed == 0)) { diff --git a/src/utils_tail_match.c b/src/utils_tail_match.c index 50622092..79868fcd 100644 --- a/src/utils_tail_match.c +++ b/src/utils_tail_match.c @@ -150,8 +150,9 @@ static int latency_submit_match(cu_match_t *match, void *user_data) { bucket.upper_bound ? CDTIME_T_TO_DOUBLE(bucket.upper_bound) : INFINITY; if (strlen(data->type_instance) != 0) - snprintf(vl.type_instance, sizeof(vl.type_instance), "%.54s-%.54s-%.2g_%.2g", - data->type, data->type_instance, lower_bound, upper_bound); + snprintf(vl.type_instance, sizeof(vl.type_instance), + "%.54s-%.54s-%.2g_%.2g", data->type, data->type_instance, + lower_bound, upper_bound); else snprintf(vl.type_instance, sizeof(vl.type_instance), "%.107s-%.2g_%.2g", data->type, lower_bound, upper_bound);