drivers/audio/cs43l22.c: Fix a printf format warning

This commit is contained in:
YAMAMOTO Takashi 2020-11-13 17:42:14 +09:00 committed by Xiang Xiao
parent 320b7131e0
commit df86bfd4cd

View File

@ -44,6 +44,7 @@
#include <sys/ioctl.h>
#include <math.h>
#include <inttypes.h>
#include <stdint.h>
#include <stdio.h>
#include <fcntl.h>
@ -1214,7 +1215,8 @@ static int cs43l22_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);