X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fsmart.c;h=30680be6ed4b5d0565ea27a4a46c453e3f3c1051;hp=0e4e192c56579ecd7641c37eb31c8b07ad9da1a8;hb=1159cb5d383c55a80a0db100b8f7aadcf44740a5;hpb=c144ae4659e129a929afb67706a54604220fef43 diff --git a/src/smart.c b/src/smart.c index 0e4e192c..30680be6 100644 --- a/src/smart.c +++ b/src/smart.c @@ -116,9 +116,9 @@ static void handle_attribute(SkDisk *d, const SkSmartAttributeParsedData *a, sstrncpy(notif.host, hostname_g, sizeof(notif.host)); sstrncpy(notif.plugin_instance, name, sizeof(notif.plugin_instance)); sstrncpy(notif.type_instance, a->name, sizeof(notif.type_instance)); - ssnprintf(notif.message, sizeof(notif.message), - "attribute %s is below allowed threshold (%d < %d)", a->name, - a->current_value, a->threshold); + snprintf(notif.message, sizeof(notif.message), + "attribute %s is below allowed threshold (%d < %d)", a->name, + a->current_value, a->threshold); plugin_dispatch_notification(¬if); } }