[collectd] [PATCH] fix compile error in ethstat.c

Teet Talviste teet.talviste at elion.ee
Tue Mar 20 10:25:57 CET 2012


---
 src/ethstat.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/ethstat.c b/src/ethstat.c
index bc02477..9764c1c 100644
--- a/src/ethstat.c
+++ b/src/ethstat.c
@@ -303,10 +303,10 @@ static int ethstat_read_interface (char *device)
   {
     const char *stat_name;
 
-    stat_name = (void *) &strings->data[i * ETH_GSTRING_LEN],
-              DEBUG("ethstat plugin: device = \"%s\": %s = %"PRIu64,
-                  device, stat_name,
-                  (uint64_t) stats->data[i]);
+    stat_name = (void *) &strings->data[i * ETH_GSTRING_LEN];
+    DEBUG("ethstat plugin: device = \"%s\": %s = %"PRIu64,
+        device, stat_name,
+        (uint64_t) stats->data[i]);
     ethstat_submit_value (device,
         stat_name, (derive_t) stats->data[i]);
   }
-- 
1.7.9.4




More information about the collectd mailing list