X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fsmart.c;h=f5850f5f4d12269156e038e2b7860b5a89594239;hp=0e4e192c56579ecd7641c37eb31c8b07ad9da1a8;hb=be126043c2be20399d7670fe194645292018bde0;hpb=867ad628dc6fcd05bd584b605d7093cfc00c3d07 diff --git a/src/smart.c b/src/smart.c index 0e4e192c..f5850f5f 100644 --- a/src/smart.c +++ b/src/smart.c @@ -116,7 +116,7 @@ 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), + 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);