From 6930355a7381b2d714705ae8e623e61231c0723f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simen=20S=2E=20R=C3=B8stad?= Date: Mon, 31 Oct 2022 17:10:26 +0100 Subject: [PATCH] lib: qos: Silence cbprint warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Silence cbprint warning that recommends casting argument used in print statements to void * to avoid misbehavior in certain configurations. Signed-off-by: Simen S. Røstad --- lib/qos/qos.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/qos/qos.c b/lib/qos/qos.c index c8c61f732094..579aad43b415 100644 --- a/lib/qos/qos.c +++ b/lib/qos/qos.c @@ -279,7 +279,7 @@ void qos_message_print(const struct qos_data *message) LOG_DBG("Notified count: %d", message->notified_count); LOG_DBG("Message heap_allocated: %d", message->heap_allocated); LOG_DBG("Message ID: %d", message->id); - LOG_DBG("Message Buffer pointer: %p", message->data.buf); + LOG_DBG("Message Buffer pointer: %p", (void *)message->data.buf); LOG_DBG("Message Buffer length: %d", message->data.len); LOG_DBG("Message Flags: %x", message->flags); LOG_DBG("Message type: %d", message->type);