From 5ef5d2c598d2f921ef3e375b41635171ae83a072 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Fri, 13 Nov 2020 14:23:11 +0900 Subject: [PATCH] drivers/audio/audio_null.c: Fix a printf format warning --- drivers/audio/audio_null.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/audio/audio_null.c b/drivers/audio/audio_null.c index c966e73f89..0b7b709465 100644 --- a/drivers/audio/audio_null.c +++ b/drivers/audio/audio_null.c @@ -46,6 +46,7 @@ #include #include +#include #include #include #include @@ -528,7 +529,8 @@ static int null_start(FAR struct audio_lowerhalf_s *dev) /* Create a message queue for the worker thread */ - snprintf(priv->mqname, sizeof(priv->mqname), "/tmp/%X", priv); + snprintf(priv->mqname, sizeof(priv->mqname), "/tmp/%" PRIXPTR, + (uintptr_t)priv); attr.mq_maxmsg = 16; attr.mq_msgsize = sizeof(struct audio_msg_s);