X-Git-Url: http://pilppa.org/gitweb/?p=libplp.git;a=blobdiff_plain;f=src%2FStoreDay.cc;h=a29c6a092dce630cc8947ef017c1844ed268f450;hp=957b7efc5d4a033593431b1ff6b5cdf26c09490a;hb=af4f692075c8e9530a19090725dc87a7ecfaebe9;hpb=2f6f82c25955b30fcc88ea2e5c3e075a39129d8b diff --git a/src/StoreDay.cc b/src/StoreDay.cc index 957b7ef..a29c6a0 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 %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;