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);