From 8c01c69779c1d802e0b57ca12892fbbddc4401dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Asbj=C3=B8rn=20S=C3=A6b=C3=B8?= Date: Tue, 22 Mar 2022 12:51:22 +0100 Subject: [PATCH] Bluetooth: Audio: Bugfix - add cast to conn pointer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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ø --- subsys/bluetooth/audio/has.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subsys/bluetooth/audio/has.c b/subsys/bluetooth/audio/has.c index 4d3b7f502a9..55ab5a97286 100644 --- a/subsys/bluetooth/audio/has.c +++ b/subsys/bluetooth/audio/has.c @@ -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);