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();
stc_plugin_procfs_deinitialize,
.procfs_status_changed =
stc_plugin_procfs_status_changed
-};
\ No newline at end of file
+};
* limitations under the License.
*/
+#include <inttypes.h>
#include <linux/netlink.h>
#include <vconf.h>
#include <vconf-keys.h>
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], rst_state [%d], "
"limit [ (%lld) bytes], "
"warn_limit [ (%lld) bytes], "
rstn_value->limit_notified |= (1 << limit_type);
snprintf(iftype, MAX_INT_LENGTH, "%d", rstn_key->iftype);
- snprintf(byte, MAX_INT_LENGTH, "%lld", rstn_value->limit[limit_type]);
+ snprintf(byte, MAX_INT_LENGTH, "%" PRId64, rstn_value->limit[limit_type]);
stc_plugin_popup_show(net_popup_content, net_popup_type,
rstn_key->app_id, iftype, byte);
return;
}
- 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."
- "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);