drivers/audio/cs4344.c: Fix a printf format warning
This commit is contained in:
parent
61bf05d26e
commit
a3b7391dcb
1 changed files with 3 additions and 1 deletions
|
|
@ -27,6 +27,7 @@
|
|||
#include <sys/types.h>
|
||||
#include <sys/ioctl.h>
|
||||
|
||||
#include <inttypes.h>
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <fcntl.h>
|
||||
|
|
@ -777,7 +778,8 @@ static int cs4344_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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue