From 688f5baded0ba94557fc8a6dbfbea0fdc00a4803 Mon Sep 17 00:00:00 2001 From: Herman Berget Date: Tue, 9 May 2023 11:05:02 +0200 Subject: [PATCH] Bluetooth: Host: Fix warning from the logging subsystem Cast `dhkey` to `void*` to avoid a warning from the logging subsystem: ``` cbprintf_package: (unsigned) char * used for %p argument. It's recommended to cast it to void * because it may cause misbehavior in certain configurations ``` Signed-off-by: Herman Berget --- subsys/bluetooth/host/smp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subsys/bluetooth/host/smp.c b/subsys/bluetooth/host/smp.c index 23f90310ca7..2fad1ea235f 100644 --- a/subsys/bluetooth/host/smp.c +++ b/subsys/bluetooth/host/smp.c @@ -3449,7 +3449,7 @@ static struct bt_smp *smp_find(int flag) static void bt_smp_dhkey_ready(const uint8_t *dhkey) { - LOG_DBG("%p", dhkey); + LOG_DBG("%p", (void *)dhkey); int err; struct bt_smp *smp = smp_find(SMP_FLAG_DHKEY_GEN);