Bluetooth: Make use of bt_uuid_to_str
This make use of bt_uuid_to_str to when printing UUID values, to make it simpler when it is just going to print so the patch introduces a new function that does the conversion in place using a static variable. Change-Id: Idfedf05a5ad201653fff2e01387f046cd5647c83 Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
This commit is contained in:
parent
118dc75cea
commit
6cb42e1e20
4 changed files with 34 additions and 11 deletions
|
@ -607,8 +607,8 @@ static uint8_t att_read_type_req(struct bt_att *att, struct bt_buf *buf)
|
|||
return BT_ATT_ERR_UNLIKELY;
|
||||
}
|
||||
|
||||
BT_DBG("start_handle 0x%04x end_handle 0x%04x type 0x%04x\n",
|
||||
start_handle, end_handle, uuid.u16);
|
||||
BT_DBG("start_handle 0x%04x end_handle 0x%04x type %s\n",
|
||||
start_handle, end_handle, bt_uuid_str(&uuid));
|
||||
|
||||
if (!range_is_valid(start_handle, end_handle, &err_handle)) {
|
||||
send_err_rsp(conn, BT_ATT_OP_READ_TYPE_REQ, err_handle,
|
||||
|
@ -953,8 +953,8 @@ static uint8_t att_read_group_req(struct bt_att *att, struct bt_buf *buf)
|
|||
return BT_ATT_ERR_UNLIKELY;
|
||||
}
|
||||
|
||||
BT_DBG("start_handle 0x%04x end_handle 0x%04x type 0x%04x\n",
|
||||
start_handle, end_handle, uuid.u16);
|
||||
BT_DBG("start_handle 0x%04x end_handle 0x%04x type %s\n",
|
||||
start_handle, end_handle, bt_uuid_str(&uuid));
|
||||
|
||||
if (!range_is_valid(start_handle, end_handle, &err_handle)) {
|
||||
send_err_rsp(conn, BT_ATT_OP_READ_GROUP_REQ, err_handle,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue