X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fsmart.c;h=85ebf0af72b119d87e6a088c0f7becb96537348e;hb=8f6aa6970bf787e6a11e095322af3338ec781d78;hp=2dfb924faa2186deeaf1b50295c82256ef08473d;hpb=25824c65721f0f21cadf1607fad367c7e7831816;p=collectd.git diff --git a/src/smart.c b/src/smart.c index 2dfb924f..85ebf0af 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)); - snprintf(notif.message, sizeof(notif.message), + ssnprintf(notif.message, sizeof(notif.message), "attribute %s is below allowed threshold (%d < %d)", a->name, a->current_value, a->threshold); plugin_dispatch_notification(¬if);