Fix 64bit dlog format error
[platform/core/connectivity/bluetooth-agent.git] / hf-agent / bluetooth-hf-agent.c
index fa15018..1dc8812 100644 (file)
@@ -309,7 +309,7 @@ done:
                i++;
        }
        if (message)
-               INFO("%s Buffer = %s, Length = %d ", message, s, strlen(s));
+               INFO("%s Buffer = %s, Length = %zd ", message, s, strlen(s));
        else
                INFO("%s", s);
 }
@@ -2298,7 +2298,7 @@ static gboolean __bt_hf_send_only_without_queue(bt_hf_agent_info_t *bt_hf_info,
        g_io_channel_flush(io_chan, NULL);
 
        if (count > 2 && data[2] == 'D') { /* ATDXXXXX */
-               INFO("[HF AT CMD] Send only without queue <<<<<: Buffer = %s, Length = %d ",
+               INFO("[HF AT CMD] Send only without queue <<<<<: Buffer = %s, Length = %zd ",
                                        "ATDXXXXXXX", count);
                snprintf(prev_cmd, BT_HF_CMD_BUF_SIZE, "%s", data);
        } else {
@@ -2333,14 +2333,14 @@ static gboolean __bt_hf_send_only(bt_hf_agent_info_t *bt_hf_info, gchar *data,
        g_io_channel_flush(io_chan, NULL);
 
        if (count > 2 && data[2] == 'D') /* ATDXXXXX */
-               INFO("[HF AT CMD] Send only <<<<<: Buffer = %s, Length = %d ",
+               INFO("[HF AT CMD] Send only <<<<<: Buffer = %s, Length = %zd ",
                                        "ATDXXXXXXX", count);
        else
                __bt_hf_agent_print_at_buffer("[HF AT CMD] Send only <<<<<:",
                                        data);
 
        send_flag++;
-       DBG("Ref %d(after) on Send only buffer size =[%d] - Send <<<<<",
+       DBG("Ref %d(after) on Send only buffer size =[%zd] - Send <<<<<",
                                                send_flag, count);
        return TRUE;
 }
@@ -2416,7 +2416,7 @@ static gboolean __bt_hf_send_and_read(bt_hf_agent_info_t *bt_hf_info,
                if (p.revents & POLLIN) {
                        rd_size = read(fd, resp_buf, toread);
                        resp_buf[rd_size] = '\0';
-                       DBG_SECURE("size = %d, Buffer=[%s]", rd_size, resp_buf);
+                       DBG_SECURE("size = %zd, Buffer=[%s]", rd_size, resp_buf);
                        recvd_ok = NULL != strstr(resp_buf, BT_HF_OK_RESPONSE);
                        recvd_error = NULL != strstr(resp_buf, BT_HF_ERROR_RESPONSE);
                        recvd_sec_error = NULL != strstr(resp_buf, BT_HF_SEC_ERROR_RESPONSE);