ceph: replace erroneous format string in DEBUG statement
authorMarc Fournier <marc.fournier@camptocamp.com>
Tue, 2 Dec 2014 11:51:10 +0000 (12:51 +0100)
committerMarc Fournier <marc.fournier@camptocamp.com>
Wed, 10 Dec 2014 14:33:12 +0000 (15:33 +0100)
Fixes build error on 32bit systems

src/ceph.c

index 5726e01..645c27c 100644 (file)
@@ -985,7 +985,7 @@ static int node_handler_fetch_data(void *arg, const char *val, const char *key)
         {
             double sum, result;
             sscanf(val, "%lf", &sum);
-            DEBUG("avgcount:%ld",vtmp->avgcount);
+            DEBUG("avgcount:%" PRIu64 "",vtmp->avgcount);
             DEBUG("sum:%lf",sum);
 
             if(vtmp->avgcount == 0)