]> arthur.barton.de Git - netdata.git/commitdiff
eliminated compiler warnings
authorCosta Tsaousis <costa@tsaousis.gr>
Mon, 26 Sep 2016 11:23:20 +0000 (14:23 +0300)
committerCosta Tsaousis <costa@tsaousis.gr>
Mon, 26 Sep 2016 11:23:20 +0000 (14:23 +0300)
src/proc_net_softnet_stat.c

index 4fb710d8c638fddf4311c38a801094417a2e3ef0..b504532276c990d72085add25e13bb0abf709706 100644 (file)
@@ -93,12 +93,12 @@ int do_proc_net_softnet_stat(int update_every, unsigned long long dt) {
     if(do_per_core) {
         for(l = 0; l < lines ;l++) {
             char id[50+1];
-            snprintfz(id, 50, "cpu%d_softnet_stat", l);
+            snprintfz(id, 50, "cpu%u_softnet_stat", l);
 
             st = rrdset_find_bytype("cpu", id);
             if(!st) {
                 char title[100+1];
-                snprintfz(title, 100, "CPU%d softnet_stat", l);
+                snprintfz(title, 100, "CPU%u softnet_stat", l);
 
                 st = rrdset_create("cpu", id, NULL, "softnet_stat", NULL, title, "events/s", 4101 + l, update_every, RRDSET_TYPE_LINE);
                 for(w = 0; w < allocated_columns ;w++)