From d3d4f0139c85a59710ce9792b3851bfadc99e878 Mon Sep 17 00:00:00 2001 From: Taesoo Jun Date: Mon, 10 Dec 2018 13:12:00 +0900 Subject: [PATCH] Fix dlog format issues Change-Id: I629ec83d55eb7720f550efc68cb76780809be5c5 --- ag-agent/bluetooth-ag-agent.h | 0 ag-agent/bluetooth-ag-handler.c | 2 +- ag-agent/bluetooth-ag-handler.h | 0 ag-agent/bluetooth-ag-manager.c | 2 +- hf-agent/bluetooth-hf-agent.c | 2 +- map-agent/bluetooth_map_email.c | 10 +++++----- map-agent/bluetooth_map_sms.c | 4 ++-- pb-agent/bluetooth_pb_agent.c | 2 +- pb-agent/bluetooth_pb_vcard.c | 2 +- 9 files changed, 12 insertions(+), 12 deletions(-) mode change 100755 => 100644 ag-agent/bluetooth-ag-agent.h mode change 100755 => 100644 ag-agent/bluetooth-ag-handler.h mode change 100755 => 100644 hf-agent/bluetooth-hf-agent.c diff --git a/ag-agent/bluetooth-ag-agent.h b/ag-agent/bluetooth-ag-agent.h old mode 100755 new mode 100644 diff --git a/ag-agent/bluetooth-ag-handler.c b/ag-agent/bluetooth-ag-handler.c index eb3a39f..c1e3351 100644 --- a/ag-agent/bluetooth-ag-handler.c +++ b/ag-agent/bluetooth-ag-handler.c @@ -677,7 +677,7 @@ int _bt_hfp_set_voice_dial(bt_ag_info_t *hs, int _bt_hfp_send_vendor_cmd(bt_ag_info_t *hs, const char *cmd) { - DBG("_bt_hfp_send_vendor_cmd = %d", cmd); + DBG("_bt_hfp_send_vendor_cmd = %s", cmd); if (_bt_ag_send_at(hs, "\r\n%s\r\n", cmd) < 0) return BT_HFP_AGENT_ERROR_INTERNAL; diff --git a/ag-agent/bluetooth-ag-handler.h b/ag-agent/bluetooth-ag-handler.h old mode 100755 new mode 100644 diff --git a/ag-agent/bluetooth-ag-manager.c b/ag-agent/bluetooth-ag-manager.c index d68b8e3..339bacd 100644 --- a/ag-agent/bluetooth-ag-manager.c +++ b/ag-agent/bluetooth-ag-manager.c @@ -443,7 +443,7 @@ static struct telephony_call *__bt_hfp_create_new_call( gboolean _bt_hfp_is_call_exist(void) { - DBG("_bt_hfp_is_call_exist [%x]", existing_call_list); + DBG("_bt_hfp_is_call_exist [%p]", existing_call_list); if (existing_call_list) return TRUE; else diff --git a/hf-agent/bluetooth-hf-agent.c b/hf-agent/bluetooth-hf-agent.c old mode 100755 new mode 100644 index e66ed10..fa15018 --- a/hf-agent/bluetooth-hf-agent.c +++ b/hf-agent/bluetooth-hf-agent.c @@ -2017,7 +2017,7 @@ bt_hf_agent_send_at_info *__bt_hf_agent_find_next(bt_hf_agent_info_t *bt_hf_info cmd = g_slist_nth_data(bt_hf_info->cmd_send_queue, 0); if (cmd) { bt_hf_info->cmd_send_queue = g_slist_remove(bt_hf_info->cmd_send_queue, cmd); - DBG("NEXT[%d] Found %s, context = 0x%x, pending = %d", cmd->id, + DBG("NEXT[%d] Found %s, context = 0x%p, pending = %d", cmd->id, cmd->at_cmd, cmd->context, cmd->pending); return cmd; } diff --git a/map-agent/bluetooth_map_email.c b/map-agent/bluetooth_map_email.c index 0d088d0..09edbfb 100644 --- a/map-agent/bluetooth_map_email.c +++ b/map-agent/bluetooth_map_email.c @@ -254,7 +254,7 @@ static void __bt_email_subscription_callback(GDBusConnection *connection, old_folder = __bt_email_get_path(mailbox_from->mailbox_type); handle = _bt_add_id(mailid, BT_MAP_ID_EMAIL); - DBG("[MessageDeleted] Handle:%d", handle); + DBG("[MessageDeleted] Handle:%llu", handle); _bt_mns_client_event_notify("MessageShift", handle, "TELECOM/MSG/DELETED", old_folder, "EMAIL"); g_free(old_folder); @@ -273,7 +273,7 @@ static void __bt_email_subscription_callback(GDBusConnection *connection, break; handle = _bt_add_id(mailid, BT_MAP_ID_EMAIL); - DBG("[SendingSuccess] Handle:%d", handle); + DBG("[SendingSuccess] Handle:%llu", handle); _bt_mns_client_event_notify("MessageShift", handle, "TELECOM/MSG/SENT", "TELECOM/MSG/OUTBOX", "EMAIL"); @@ -421,7 +421,7 @@ static message_info_t *__bt_email_info_get(email_mail_list_item_t *email_struct, #else snprintf(email_handle, sizeof(email_handle), "%llx", uid); #endif - DBG("******* MAP ID:%d, MailID:%d **********", uid, email_struct->mail_id); + DBG("******* MAP ID:%llu, MailID:%d **********", uid, email_struct->mail_id); email_info->handle = g_strdup(email_handle); dptime = email_struct->date_time; @@ -737,8 +737,8 @@ static char *__bt_prepare_email_bmseg(email_mail_data_t *mail_data) g_free(folder); /* List of recepient & sender */ - DBG("Sender: %d", mail_data->email_address_sender); - DBG("Sender Alias: %d", mail_data->alias_sender); + DBG("Sender: %s", mail_data->email_address_sender); + DBG("Sender Alias: %s", mail_data->alias_sender); g_string_append_printf(msg, EMAIL_VCARD, mail_data->email_address_sender, mail_data->email_address_sender); diff --git a/map-agent/bluetooth_map_sms.c b/map-agent/bluetooth_map_sms.c index 49993ee..eba780b 100644 --- a/map-agent/bluetooth_map_sms.c +++ b/map-agent/bluetooth_map_sms.c @@ -896,7 +896,7 @@ static message_info_t *__bt_message_info_get(msg_struct_t msg_struct_handle, #else snprintf(msg_handle, sizeof(msg_handle), "%llx", uid); #endif - DBG("HANDLE: %s, MAP Id: %d, MSG ID:%d", msg_handle, uid, msg_id); + DBG("HANDLE: %s, MAP Id: %llu, MSG ID:%d", msg_handle, uid, msg_id); msg_info->handle = g_strdup(msg_handle); msg = msg_create_struct(MSG_STRUCT_MESSAGE_INFO); @@ -1102,7 +1102,7 @@ gboolean _bt_map_get_sms_message_list(gchar *folder, guint16 max, goto fail; local_count = (guint64)msg_list.nCount; - DBG("msg_list.nCount: %d, count:%d", msg_list.nCount, local_count); + DBG("msg_list.nCount: %d, count:%llu", msg_list.nCount, local_count); for (i = 0; i < local_count; i++) { msg_get_bool_value(msg_list.msg_struct_info[i], MSG_MESSAGE_READ_BOOL, &read); diff --git a/pb-agent/bluetooth_pb_agent.c b/pb-agent/bluetooth_pb_agent.c index d5f9664..176d810 100644 --- a/pb-agent/bluetooth_pb_agent.c +++ b/pb-agent/bluetooth_pb_agent.c @@ -615,7 +615,7 @@ static GVariant *__bt_pb_get_phonebook_entry(PbAgentData *agent, gchar *str = NULL; const gchar *attr = NULL; - DBG_SECURE("folder: %s id: %s filter: %ld format: %d\n", + DBG_SECURE("folder: %s id: %s filter: %llu format: %d\n", folder, id, filter, format); __bluetooth_pb_agent_timeout_add_seconds(agent); diff --git a/pb-agent/bluetooth_pb_vcard.c b/pb-agent/bluetooth_pb_vcard.c index 292790e..ac43ef7 100644 --- a/pb-agent/bluetooth_pb_vcard.c +++ b/pb-agent/bluetooth_pb_vcard.c @@ -1678,7 +1678,7 @@ static gchar *__bluetooth_pb_vcard_real_contact_valist_v21(gint person_id, if (f == 0) f = ~f; - DBG("filter[%x]\n", filter); + DBG("filter[%llu]\n", filter); str = g_string_new("BEGIN:VCARD\r\nVERSION:2.1\r\n"); -- 2.7.4