X-Git-Url: http://pilppa.org/gitweb/?a=blobdiff_plain;f=src%2FStoreDay.cc;h=5d71b37cb39ca9e0fc75a4f1d2b28c345f0bf067;hb=860d8c023b82eeca9833d4a3f534c6d11a9523f3;hp=08e56c97c0b9dd71ae6ee88d14af7d5d8a5c0941;hpb=063ec715601bf9662797725cb39732bea0572d26;p=libplp.git diff --git a/src/StoreDay.cc b/src/StoreDay.cc index 08e56c9..5d71b37 100644 --- a/src/StoreDay.cc +++ b/src/StoreDay.cc @@ -80,7 +80,11 @@ void StoreDay::save(string device_id, ostream = NULL; f_path = ""; - log_info("[%s] writing %d 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] saving %lu data values.\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;