summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f46d76e)
raw | patch | inline | side by side (parent: f46d76e)
author | Taras Chornyi <tarasx.chornyi@intel.com> | |
Tue, 14 Nov 2017 17:21:36 +0000 (17:21 +0000) | ||
committer | Marc Fournier <marc.fournier@camptocamp.com> | |
Tue, 14 Nov 2017 21:14:35 +0000 (22:14 +0100) |
Signed-off-by: Taras Chornyi <tarasx.chornyi@intel.com>
src/mcelog.c | patch | blob | history | |
src/target_notification.c | patch | blob | history | |
src/utils_tail_match.c | patch | blob | history |
diff --git a/src/mcelog.c b/src/mcelog.c
index 8ef5c23df57fa4e0b0304474c6938dd2d713aa34..26494887a72a346d433d8cb9a3a125c6f1f5a679 100644 (file)
--- a/src/mcelog.c
+++ b/src/mcelog.c
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);
index 747bcc2228b935d0d9c508b2d416e159e9944690..f83a904ac07f6f73d9d7530e2d01e3dfa3c07178 100644 (file)
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 50622092a5953bb18af06e5ea33f5598e04c699b..79868fcdf9a09cdd5670e0d1e22c0f35421a653e 100644 (file)
--- a/src/utils_tail_match.c
+++ b/src/utils_tail_match.c
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);