From fa82d490c75133f6e8a06a8f7e0bb46ad3f02af0 Mon Sep 17 00:00:00 2001 From: DoHyun Pyun Date: Tue, 18 Dec 2018 09:01:50 +0900 Subject: [PATCH] Fix dlog format error Change-Id: I1f6289520a89e357c917de2bff8fd6115ed97090 Signed-off-by: DoHyun Pyun --- bt-share/src/bt-share-cynara.c | 2 +- bt-share/src/bt-share-notification.c | 6 +++--- bt-share/src/obex-event-handler.c | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/bt-share/src/bt-share-cynara.c b/bt-share/src/bt-share-cynara.c index 74da2aa..8f52232 100644 --- a/bt-share/src/bt-share-cynara.c +++ b/bt-share/src/bt-share-cynara.c @@ -58,7 +58,7 @@ int _bt_share_cynara_get_creds(DBusConnection *conn, const char *sender, ret = cynara_creds_dbus_get_pid(conn, sender, &(creds->pid)); if (ret < 0) { cynara_strerror(ret, error_msg, error_msg_size); - ERR("cynara_creds_dbus_get_pid failed: %s\n"); + ERR("cynara_creds_dbus_get_pid fail\n"); return BT_SHARE_FAIL; } diff --git a/bt-share/src/bt-share-notification.c b/bt-share/src/bt-share-notification.c index 52a6a6c..b59eae3 100644 --- a/bt-share/src/bt-share-notification.c +++ b/bt-share/src/bt-share-notification.c @@ -296,7 +296,7 @@ notification_h _bt_insert_notification(bt_appdata_t *ad, ad->receive_noti_id = noti_id; INFO("Insert %s type: %d ", (type == BT_SENT_NOTI || - type == BT_RECEIVED_NOTI) ? "Notification" : "Ongoing", noti); + type == BT_RECEIVED_NOTI) ? "Notification" : "Ongoing", type); return noti; } @@ -307,7 +307,7 @@ int _bt_update_notification(bt_appdata_t *ad, { retvm_if(!noti, BT_SHARE_FAIL, "noti is NULL"); - INFO("Update noti : %d", noti); + INFO("Update noti : %p", noti); notification_error_e ret = NOTIFICATION_ERROR_NONE; int success = 0; int fail = 0; @@ -431,7 +431,7 @@ int _bt_delete_notification(notification_h noti) retv_if(!noti, BT_SHARE_FAIL); notification_error_e ret = NOTIFICATION_ERROR_NONE; - INFO("Delete noti : %d", noti); + INFO("Delete noti : %p", noti); /* In case daemon, give full path */ ret = notification_delete(noti); diff --git a/bt-share/src/obex-event-handler.c b/bt-share/src/obex-event-handler.c index 312f2b7..9a6d51c 100644 --- a/bt-share/src/obex-event-handler.c +++ b/bt-share/src/obex-event-handler.c @@ -847,7 +847,7 @@ void _bt_share_event_handler(int event, bluetooth_event_param_t *param, is_tr_wait = false; } - DBG("name address = [%x]", name); + DBG("name address = [%s]", name); _bt_convert_addr_type_to_string(bd_addr, node->addr); DBG_SECURE("bd_addr = [%s]", bd_addr); @@ -1487,7 +1487,7 @@ static void __bt_obex_file_push_auth(bt_obex_server_authorize_into_t goto reject; } - INFO("File Length =%ld", server_auth_info->length); + INFO("File Length =%ld", (long int)server_auth_info->length); if (val == BT_DEFAULT_MEM_MMC) { ret = _bt_get_available_ext_memory(&available_ext_mem_size); @@ -1509,7 +1509,7 @@ static void __bt_obex_file_push_auth(bt_obex_server_authorize_into_t goto reject; } - INFO("available_int_mem_size =%lf", available_ext_mem_size); + INFO("available_int_mem_size =%llu", available_ext_mem_size); if (available_int_mem_size < server_auth_info->length) { g_timeout_add(BT_APP_POPUP_LAUNCH_TIMEOUT, (GSourceFunc)_bt_app_popup_memoryfull, -- 2.7.4