Bluetooth: Audio: Bugfix - add cast to conn pointer
Cast conn pointer to void in debug statement, to avoid compilation error. (Explanation given: Trying to log an opaque pointer causes error.) Signed-off-by: Asbjørn Sæbø <asbjorn.sabo@nordicsemi.no>
This commit is contained in:
parent
9065bee557
commit
8c01c69779
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ static struct bt_has has;
|
|||
static ssize_t read_features(struct bt_conn *conn, const struct bt_gatt_attr *attr, void *buf,
|
||||
uint16_t len, uint16_t offset)
|
||||
{
|
||||
BT_DBG("conn %p attr %p offset %d", conn, attr, offset);
|
||||
BT_DBG("conn %p attr %p offset %d", (void *)conn, attr, offset);
|
||||
|
||||
if (offset > sizeof(has.features)) {
|
||||
return BT_GATT_ERR(BT_ATT_ERR_INVALID_OFFSET);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue