Bluetooth: Fix Wrong format when debug

Fix wformat build warning

Signed-off-by: Lingao Meng <menglingao@xiaomi.com>
This commit is contained in:
Lingao Meng 2021-07-21 04:02:51 -07:00 committed by Christopher Friedt
commit cce921dad5
3 changed files with 7 additions and 7 deletions

View file

@ -85,7 +85,7 @@ static ssize_t read_location(struct bt_conn *conn, const struct bt_gatt_attr *at
{
struct bt_vocs *inst = attr->user_data;
BT_DBG("0x%02x", inst->srv.location);
BT_DBG("0x%08x", inst->srv.location);
return bt_gatt_attr_read(conn, attr, buf, len, offset, &inst->srv.location,
sizeof(inst->srv.location));
}