char buf[EXCEPTION_BUF_MAX] = {0, };
fp = fopen(EXCEPTION_STORAGE, "r");
- ret_value_msg_if(!fp, STC_ERROR_FAIL, "Failed to open %s file");
+ ret_value_msg_if(!fp, STC_ERROR_FAIL, "Failed to open %s file",
+ EXCEPTION_STORAGE);
while (fgets(buf, sizeof(buf), fp) != NULL) {
char *process_name, *exe_type;
/* G_IO_ERR/G_IO_HUP/G_IO_NVAL received */
STC_LOGE("Netlink Connector socket received G_IO event, closing"
- " socket. G_IO_ERR [%d], G_IO_HUP [%d], G_IO_NVAL [%s]",
+ " socket. G_IO_ERR [%u], G_IO_HUP [%u], G_IO_NVAL [%u]",
(condition & G_IO_ERR), (condition & G_IO_HUP),
(condition & G_IO_NVAL));
__reopen_nl_connector_sock();
static void __print_rstn(stc_rstn_key_s *rstn_key, stc_rstn_value_s *rstn_value)
{
STC_LOGI("rstn info => rstn_id [%llu], "
- "app_id [%s], classid [%lu], ifname [%s], "
+ "app_id [%s], classid [%u], ifname [%s], "
"iftype [%d], rstn_state [%d], rstn_type [%d], "
"limit [ (%lld) bytes], "
"warn_limit [ (%lld) bytes], "
return; //LCOV_EXCL_LINE
}
- STC_LOGI("classid %lu, iftype %u, iotype %d, intend %d, ifname %s, bytes %lld",
+ STC_LOGI("classid %u, iftype %u, iotype %d, intend %d, ifname %s, bytes %lld",
context.counter->classid, context.counter->iftype,
context.counter->iotype, context.counter->intend,
context.counter->ifname, context.bytes);
/* G_IO_ERR/G_IO_HUP/G_IO_NVAL received */
STC_LOGE("Counter socket received G_IO event, closing socket." //LCOV_EXCL_LINE
- "G_IO_ERR [%d], G_IO_HUP [%d], G_IO_NVAL [%s]",
+ "G_IO_ERR [%u], G_IO_HUP [%u], G_IO_NVAL [%u]",
(condition & G_IO_ERR), (condition & G_IO_HUP),
(condition & G_IO_NVAL));
__close_and_reopen_contr_sock(g_system); //LCOV_EXCL_LINE
guint str_length;
const gchar *str = g_variant_get_string(value, &str_length);
rule->app_id = g_strdup(str);
- STC_LOGD("app_id: [%s]", (unsigned int) rule->app_id);
+ STC_LOGD("app_id: [%s]", rule->app_id);
} else if (!g_strcmp0(key, "ifname")) {
guint str_length;