i++;
}
if (message)
- INFO("%s Buffer = [%s], Len(%d)", message, s, strlen(s));
+ INFO("%s Buffer = [%s], Len(%zd)", message, s, strlen(s));
else
INFO("[%s]", s);
}
count = vsnprintf(rsp_buffer, sizeof(rsp_buffer), list_format, list);
if (count < 0) {
- ERR("count is %d", count);
+ ERR("count is %zd", count);
return -EINVAL;
}
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);
}
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 {
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;
}
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);
DBG("Add id: %d, MsgType:%d", uid, msg_type);
test = _bt_validate_uid(uid, msg_type);
- DBG("test: %llx\n", test);
+ DBG("test: %llu\n", (unsigned long long int)test);
if (test)
return test;
info->map_id = map_id;
info->uid = uid;
info->msg_type = msg_type;
- DBG("map_id = %llx, uid = %d, MsgType=%d", info->map_id, info->uid, msg_type);
+ DBG("map_id = %llu, uid = %d, MsgType=%d", (unsigned long long int)info->map_id, info->uid, msg_type);
id_list = g_slist_append(id_list, info);
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);
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");
#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;
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);
GSList *recepients = NULL;
gboolean send = FALSE;
- 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);
#else
snprintf(msg_handle, sizeof(msg_handle), "%llx", uid);
#endif
- DBG("HANDLE: %s, MAP Id: %llu, MSG ID:%d", msg_handle, uid, msg_id);
+ DBG("HANDLE: %s, MAP Id: %llu, MSG ID:%d", msg_handle, (unsigned long long int)uid, msg_id);
msg_info->handle = g_strdup(msg_handle);
msg = msg_create_struct(MSG_STRUCT_MESSAGE_INFO);
goto fail;
local_count = (guint64)msg_list.nCount;
- DBG("msg_list.nCount: %d, count:%llu", msg_list.nCount, local_count);
+ DBG("msg_list.nCount: %d, count:%llu", msg_list.nCount, (unsigned long long int)local_count);
for (i = 0; i < local_count; i++) {
msg_get_bool_value(msg_list.msg_struct_info[i],
MSG_MESSAGE_READ_BOOL, &read);
}
}
- DBG("count = %llx, newmsg = %d, max = %d", local_count, *newmsg, max);
+ DBG("count = %llu, newmsg = %d, max = %d", (unsigned long long int)local_count, *newmsg, max);
for (i = 0, msg_count = 0; i < local_count && msg_count < max; i++) {
message_info_t *msg_info;
GVariantBuilder *vcards;
INFO("name: %s filter: %lld format: %d max_list_count: %d list_start_offset: %d\n",
- name, filter, format, max_list_count, list_start_offset);
+ name, (unsigned long long int)filter, format, max_list_count, list_start_offset);
__bluetooth_pb_agent_timeout_add_seconds(agent);
const gchar *attr = NULL;
DBG_SECURE("folder: %s id: %s filter: %llu format: %d\n",
- folder, id, filter, format);
+ folder, id, (unsigned long long int)filter, format);
__bluetooth_pb_agent_timeout_add_seconds(agent);
if (f == 0)
f = ~f;
- DBG("filter[%llu]\n", filter);
+ DBG("filter[%llu]\n", (unsigned long long int)filter);
str = g_string_new("BEGIN:VCARD\r\nVERSION:2.1\r\n");