From 950fff8e66f4c9690a6778acdb0e4c51a5ac9317 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Fri, 13 Nov 2020 16:53:18 +0900 Subject: [PATCH] drivers/audio/cxd56.c: Fix a printf format warning --- drivers/audio/cxd56.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/audio/cxd56.c b/drivers/audio/cxd56.c index 259e7aee39..ea5d5582a1 100644 --- a/drivers/audio/cxd56.c +++ b/drivers/audio/cxd56.c @@ -41,6 +41,7 @@ #include #include #include +#include #include #include @@ -3475,7 +3476,8 @@ static int cxd56_init_worker(FAR struct audio_lowerhalf_s *dev) void *value; int ret; - snprintf(priv->mqname, sizeof(priv->mqname), "/tmp/%X", priv); + snprintf(priv->mqname, sizeof(priv->mqname), "/tmp/%" PRIXPTR, + (uintptr_t)priv); m_attr.mq_maxmsg = 16; m_attr.mq_msgsize = sizeof(struct audio_msg_s);