From: Florian Forster Date: Mon, 24 Jul 2017 13:37:45 +0000 (+0200) Subject: Merge pull request #2246 from maryamtahhan/feat_mcelog_notification_bugfixes X-Git-Tag: collectd-5.8.0~109 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=68c08bd380d63281f5707e893c27f952c5fde1d8;p=collectd.git Merge pull request #2246 from maryamtahhan/feat_mcelog_notification_bugfixes Feat mcelog notification bugfixes --- 68c08bd380d63281f5707e893c27f952c5fde1d8 diff --cc src/mcelog.c index b8731c73,22c8807c..66699ede --- a/src/mcelog.c +++ b/src/mcelog.c @@@ -288,11 -422,13 +422,13 @@@ static int mcelog_submit(const mcelog_m .time = cdtime(), .plugin = MCELOG_PLUGIN, .type = "errors", - .type_instance = "corrected_memory_errors"}; + .type_instance = MCELOG_CORRECTED_ERR_TYPE_INS}; + + mcelog_update_dimm_stats(dimm, mr); if (mr->dimm_name[0] != '\0') - ssnprintf(vl.plugin_instance, sizeof(vl.plugin_instance), "%s_%s", - mr->location, mr->dimm_name); + snprintf(vl.plugin_instance, sizeof(vl.plugin_instance), "%s_%s", + mr->location, mr->dimm_name); else sstrncpy(vl.plugin_instance, mr->location, sizeof(vl.plugin_instance));