]> pilppa.org Git - libplp.git/blobdiff - src/StoreDay.cc
warning cleanups
[libplp.git] / src / StoreDay.cc
index 957b7efc5d4a033593431b1ff6b5cdf26c09490a..a29c6a092dce630cc8947ef017c1844ed268f450 100644 (file)
@@ -80,7 +80,11 @@ void StoreDay::save(string device_id,
 
        ostream =  NULL;
        f_path  = "";
-       log_info("[%s] writing %lu data values to save.\n", device_id.c_str(), data_list->size());
+       /* needs to be casted to long unsigned int value is "unsigned int" in some
+           toolchains and that would otherwise cause an warning/error 
+        */
+       log_info("[%s] writing %lu data values to save.\n", device_id.c_str(),
+               (long unsigned int)data_list->size());
        // TODO: add mutex to protect string_list while it's read and emptied
        for(iter = data_list->begin(); iter != data_list->end(); iter++) {
                data    = (Data *)*iter;