Fix 64bit dlog format error
[platform/core/connectivity/bluetooth-agent.git] / map-agent / bluetooth_map_email.c
index 09edbfb..82d1a60 100644 (file)
@@ -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:%llu", handle);
+                               DBG("[MessageDeleted] Handle:%llu", (unsigned long long int)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:%llu", handle);
+                               DBG("[SendingSuccess] Handle:%llu", (unsigned long long int)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:%llu, MailID:%d **********", uid, email_struct->mail_id);
+       DBG("******* MAP ID:%llu, MailID:%d **********", (unsigned long long int)uid, email_struct->mail_id);
        email_info->handle = g_strdup(email_handle);
 
        dptime = email_struct->date_time;
@@ -1073,7 +1073,7 @@ gboolean _bt_map_push_email_data(struct bmsg_data *bmsg_info,
        gboolean send = FALSE;
        char *mailto = NULL;
 
-       DBG("Length of Folder String: %d", strlen(bmsg_info->folder));
+       DBG("Length of Folder String: %zd", strlen(bmsg_info->folder));
        if (strlen(bmsg_info->folder) == 0) {
                DBG("No Folder Info. Default to OUTBOX");
                bmsg_info->folder = g_strdup(folder);