Bluetooth: Fix Wrong format when debug
Fix wformat build warning Signed-off-by: Lingao Meng <menglingao@xiaomi.com>
This commit is contained in:
parent
7423f5f897
commit
cce921dad5
3 changed files with 7 additions and 7 deletions
|
@ -284,7 +284,7 @@ static int prepare_vocs_inst(struct bt_vcs_register_param *param)
|
|||
vcs_inst.srv.vocs_insts[j] = bt_vocs_free_instance_get();
|
||||
|
||||
if (vcs_inst.srv.vocs_insts[j] == NULL) {
|
||||
BT_ERR("Could not get free VOCS instances[%u]",
|
||||
BT_ERR("Could not get free VOCS instances[%d]",
|
||||
j);
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
@ -292,7 +292,7 @@ static int prepare_vocs_inst(struct bt_vcs_register_param *param)
|
|||
err = bt_vocs_register(vcs_inst.srv.vocs_insts[j],
|
||||
¶m->vocs_param[j]);
|
||||
if (err != 0) {
|
||||
BT_DBG("Could not register VOCS instance[%u]: %d",
|
||||
BT_DBG("Could not register VOCS instance[%d]: %d",
|
||||
j, err);
|
||||
return err;
|
||||
}
|
||||
|
@ -326,7 +326,7 @@ static int prepare_aics_inst(struct bt_vcs_register_param *param)
|
|||
vcs_inst.srv.aics_insts[j] = bt_aics_free_instance_get();
|
||||
|
||||
if (vcs_inst.srv.aics_insts[j] == NULL) {
|
||||
BT_ERR("Could not get free AICS instances[%u]",
|
||||
BT_ERR("Could not get free AICS instances[%d]",
|
||||
j);
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
@ -334,7 +334,7 @@ static int prepare_aics_inst(struct bt_vcs_register_param *param)
|
|||
err = bt_aics_register(vcs_inst.srv.aics_insts[j],
|
||||
¶m->aics_param[j]);
|
||||
if (err != 0) {
|
||||
BT_DBG("Could not register AICS instance[%u]: %d",
|
||||
BT_DBG("Could not register AICS instance[%d]: %d",
|
||||
j, err);
|
||||
return err;
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
|
|
|
@ -1056,7 +1056,7 @@ struct bt_conn *bt_conn_ref(struct bt_conn *conn)
|
|||
}
|
||||
} while (!atomic_cas(&conn->ref, old, old + 1));
|
||||
|
||||
BT_DBG("handle %u ref %u -> %u", conn->handle, old, old + 1);
|
||||
BT_DBG("handle %u ref %d -> %d", conn->handle, old, old + 1);
|
||||
|
||||
return conn;
|
||||
}
|
||||
|
@ -1076,7 +1076,7 @@ void bt_conn_unref(struct bt_conn *conn)
|
|||
|
||||
old = atomic_dec(&conn->ref);
|
||||
|
||||
BT_DBG("handle %u ref %u -> %u", conn->handle, old,
|
||||
BT_DBG("handle %u ref %d -> %d", conn->handle, old,
|
||||
atomic_get(&conn->ref));
|
||||
|
||||
__ASSERT(old > 0, "Conn reference counter is 0");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue