Merge pull request #3103 from rubenk/write_prometheus-fix-compiler-warning
authorPavel Rochnyak <pavel2000@ngs.ru>
Wed, 20 Feb 2019 11:36:23 +0000 (18:36 +0700)
committerGitHub <noreply@github.com>
Wed, 20 Feb 2019 11:36:23 +0000 (18:36 +0700)
write_prometheus plugin: fix compiler warning

src/write_prometheus.c

index b109d42..96e71ca 100644 (file)
@@ -722,7 +722,7 @@ metric_family_get(data_set_t const *ds, value_list_t const *vl, size_t ds_index,
 
   int status = c_avl_insert(metrics, fam->name, fam);
   if (status != 0) {
-    ERROR("write_prometheus plugin: Adding \"%s\" failed.", name);
+    ERROR("write_prometheus plugin: Adding \"%s\" failed.", fam->name);
     metric_family_destroy(fam);
     return NULL;
   }