(uint64_t)(value[6] & 0xFF) << 8 |
(uint64_t)(value[7] & 0xFF);
otp_client_s->otp_feature = feature;
- BT_INFO("OTP Feature [%llu]", feature);
+ BT_INFO("OTP Feature [%llu]", (long long unsigned int)feature);
if (BT_OTP_IS_OACP_SUPPORTED(otp_client_s->otp_feature)
&& !otp_client_s->oacp_cccd_enabled
(uint64_t)(value[2] & 0xFF) << 16 |
(uint64_t)(value[1] & 0xFF) << 8 |
(uint64_t)(value[0] & 0xFF);
- BT_INFO("Object ID [%llu]", id);
+ BT_INFO("Object ID [%llu]", (long long unsigned int)id);
/* TODO: Remove the previous stored object list */
if (otp_client_s->curr_op == BT_OTP_OBJECT_DISCOVERY) {
(uint64_t)(info->data[3] & 0xFF) << 16 |
(uint64_t)(info->data[2] & 0xFF) << 8 |
(uint64_t)(info->data[1] & 0xFF);
- BT_INFO("Changed occurred to object id %llu", id);
+ BT_INFO("Changed occurred to object id %llu", (long long unsigned int)id);
return;
}
}
return BT_ERROR_OPERATION_FAILED;
}
- BT_DBG("OTP client select object [%llu] from Remote device [%s]", id, otp_client_s->remote_address);
+ BT_DBG("OTP client select object [%llu] from Remote device [%s]", (long long unsigned int)id, otp_client_s->remote_address);
otp_client_s->curr_op = BT_OTP_OBJECT_SELECT;
otp_client_s->callback = callback;
otp_client_s->user_data = user_data;
return TRUE;
}
- BT_DBG("Received data length %d, remote_addr = %s", len, remote_addr);
+ BT_DBG("Received data length %zd, remote_addr = %s", len, remote_addr);
if (!oacp_read_op) {
char file_path[BT_FILE_PATH_MAX_LEN] = {0, };
object_info = _bt_otp_client_find_object(otp_client_s->object_list, obj_id);
if (!object_info) {
- BT_INFO("Object Not Found [%llu]", obj_id);
+ BT_INFO("Object Not Found [%llu]", (long long unsigned int)obj_id);
goto fail;
}
if (oacp_read_op->length <= oacp_read_op->size) {
written = fwrite(buffer, 1, len, oacp_read_op->fp);
oacp_read_op->length += written;
- BT_DBG("written [%d], length_sofar [%u], received_buff_len [%d], size [%u]",
+ BT_DBG("written [%d], length_sofar [%u], received_buff_len [%zd], size [%u]",
written, oacp_read_op->length, len, oacp_read_op->size);
}
obj_id = otp_client_s->object_id;
BT_DBG("OTP client Read objects Contents from Remote device [%s] for Object [%llu]",
- otp_client_s->remote_address, obj_id);
+ otp_client_s->remote_address, (long long unsigned int)obj_id);
object_info = _bt_otp_client_find_object(otp_client_s->object_list, obj_id);
if (!object_info) {
- BT_INFO("Object Not Found [%llu]", obj_id);
+ BT_INFO("Object Not Found [%llu]", (long long unsigned int)obj_id);
return BT_ERROR_OPERATION_FAILED;
}
uint32_t length = object_info->curr_size;
BT_INFO("Object ID [%llu],Offset [%u], Length [%u], curr_size [%u]",
- obj_id, offset, length, object_info->curr_size);
+ (long long unsigned int)obj_id, offset, length, object_info->curr_size);
uint8_t value[9] = {0x00};
value[0] = OACP_READ;
object_info = _bt_otp_client_find_object(otp_client_s->object_list,
otp_client_s->object_id);
if (!object_info) {
- BT_INFO("Object Not Found [%llu]", otp_client_s->object_id);
+ BT_INFO("Object Not Found [%llu]", (long long unsigned int)otp_client_s->object_id);
return BT_ERROR_OPERATION_FAILED;
}
object_info = _bt_otp_client_find_object(otp_client_s->object_list,
otp_client_s->object_id);
if (!object_info) {
- BT_INFO("Object Not Found [%llu]", otp_client_s->object_id);
+ BT_INFO("Object Not Found [%llu]", (long long unsigned int)otp_client_s->object_id);
return BT_ERROR_OPERATION_FAILED;
}
}
BT_DBG("OTP client execute object [%llu] in Remote device [%s]",
- otp_client_s->object_id, otp_client_s->remote_address);
+ (long long unsigned int)otp_client_s->object_id, otp_client_s->remote_address);
otp_client_s->callback = callback;
otp_client_s->user_data = user_data;
object_info = _bt_otp_client_find_object(otp_client_s->object_list,
otp_client_s->object_id);
if (!object_info) {
- BT_INFO("Object Not Found [%llu]", otp_client_s->object_id);
+ BT_INFO("Object Not Found [%llu]", (long long unsigned int)otp_client_s->object_id);
return BT_ERROR_OPERATION_FAILED;
}
}
BT_DBG("OTP client delete object [%llu] in Remote device [%s]",
- otp_client_s->object_id, otp_client_s->remote_address);
+ (long long unsigned int)otp_client_s->object_id, otp_client_s->remote_address);
otp_client_s->callback = callback;
otp_client_s->user_data = user_data;