drivers/audio/cxd56.c: Fix a printf format warning
This commit is contained in:
parent
26e1e4c74c
commit
950fff8e66
@ -41,6 +41,7 @@
|
||||
#include <math.h>
|
||||
#include <queue.h>
|
||||
#include <string.h>
|
||||
#include <inttypes.h>
|
||||
|
||||
#include <nuttx/arch.h>
|
||||
#include <nuttx/config.h>
|
||||
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user