summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 68c08bd)
raw | patch | inline | side by side (parent: 68c08bd)
author | Korynkevych, RomanX <romanx.korynkevych@intel.com> | |
Tue, 25 Jul 2017 09:30:59 +0000 (10:30 +0100) | ||
committer | Korynkevych, RomanX <romanx.korynkevych@intel.com> | |
Tue, 25 Jul 2017 09:30:59 +0000 (10:30 +0100) |
Change-Id: I625254fa60efbb94580ed2eb69d7c7bf7027a6eb
Signed-off-by: Korynkevych, RomanX <romanx.korynkevych@intel.com>
Signed-off-by: Korynkevych, RomanX <romanx.korynkevych@intel.com>
src/mcelog.c | patch | blob | history |
diff --git a/src/mcelog.c b/src/mcelog.c
index 66699ede265554812ba4cf2a925d5f9c4b70d851..6b10b04cf7098b2b1ec404f8fb58ac7ba96a73d0 100644 (file)
--- a/src/mcelog.c
+++ b/src/mcelog.c
char dimm_name[DATA_MAX_NAME_LEN];
if (strlen(rec->dimm_name) > 0) {
- ssnprintf(dimm_name, sizeof(dimm_name), "%s_%s", rec->location,
- rec->dimm_name);
+ snprintf(dimm_name, sizeof(dimm_name), "%s_%s", rec->location,
+ rec->dimm_name);
} else
sstrncpy(dimm_name, rec->location, sizeof(dimm_name));
sstrncpy(n.host, hostname_g, sizeof(n.host));
if (mr->dimm_name[0] != '\0')
- ssnprintf(n.plugin_instance, sizeof(n.plugin_instance), "%s_%s",
- mr->location, mr->dimm_name);
+ snprintf(n.plugin_instance, sizeof(n.plugin_instance), "%s_%s",
+ mr->location, mr->dimm_name);
else
sstrncpy(n.plugin_instance, mr->location, sizeof(n.plugin_instance));
mr->corrected_err_total);
plugin_notification_meta_add_signed_int(&n, MCELOG_CORRECTED_ERR_TIMED,
mr->corrected_err_timed);
- ssnprintf(n.message, sizeof(n.message), MCELOG_CORRECTED_ERR);
+ snprintf(n.message, sizeof(n.message), MCELOG_CORRECTED_ERR);
sstrncpy(n.type_instance, MCELOG_CORRECTED_ERR_TYPE_INS,
sizeof(n.type_instance));
plugin_dispatch_notification(&n);
mr->uncorrected_err_total);
plugin_notification_meta_add_signed_int(&n, MCELOG_UNCORRECTED_ERR_TIMED,
mr->uncorrected_err_timed);
- ssnprintf(n.message, sizeof(n.message), MCELOG_UNCORRECTED_ERR);
+ snprintf(n.message, sizeof(n.message), MCELOG_UNCORRECTED_ERR);
sstrncpy(n.type_instance, MCELOG_UNCORRECTED_ERR_TYPE_INS,
sizeof(n.type_instance));
n.severity = NOTIF_FAILURE;