mirror of
https://github.com/apache/nuttx.git
synced 2026-10-06 05:47:54 +00:00
drivers/audio/cxd56.c: Fix a printf format warning
This commit is contained in:
parent
26e1e4c74c
commit
950fff8e66
1 changed files with 3 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue