Cast cdtime_t to unsigned long long when necessary
authorAndrew Bays <andrew.bays@gmail.com>
Mon, 17 Jun 2019 11:51:42 +0000 (07:51 -0400)
committerAndrew Bays <andrew.bays@gmail.com>
Thu, 5 Sep 2019 13:21:22 +0000 (09:21 -0400)
src/connectivity.c

index 30977e1..45b65aa 100644 (file)
 
 #include "collectd.h"
 
-#include "utils/common/common.h"
 #include "plugin.h"
-#include "utils_complain.h"
+#include "utils/common/common.h"
 #include "utils/ignorelist/ignorelist.h"
+#include "utils_complain.h"
 
 #include <asm/types.h>
 #include <errno.h>
@@ -474,7 +474,8 @@ static int connectivity_link_state(struct nlmsghdr *msg) {
     }
 
     DEBUG("connectivity plugin (%llu): Interface %s status is now %s",
-          il->timestamp, dev, ((ifi->ifi_flags & IFF_RUNNING) ? "UP" : "DOWN"));
+          (unsigned long long)il->timestamp, dev,
+          ((ifi->ifi_flags & IFF_RUNNING) ? "UP" : "DOWN"));
 
     // no need to loop again, we found the interface name attr
     // (otherwise the first if-statement in the loop would