Signed-off-by: Mika Laitio <lamikr@pilppa.org>
}
}
else {
- log_error("Failed to load device device configuration, memory allocation error.\n");
+ log_error("Failed to load device configuration, memory allocation error.\n");
set_config_value(DEVICE_CONFIG_VALUE_KEY__TYPE, "");
}
}
else {
- log_error("Failed to load device device configuration, file does not exist: %s.\n", cfg_fl.c_str());
+ log_error("Failed to load device configuration, file does not exist: %s.\n", cfg_fl.c_str());
}
}
return ret_val;
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;