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] 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;