mirror of
https://github.com/apache/nuttx.git
synced 2026-05-23 14:58:13 +08:00
drivers/audio/wm8776.c: Fix a printf format warning
This commit is contained in:
committed by
Xiang Xiao
parent
a3b7391dcb
commit
1373f476fb
@@ -27,6 +27,7 @@
|
||||
#include <sys/types.h>
|
||||
#include <sys/ioctl.h>
|
||||
|
||||
#include <inttypes.h>
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <fcntl.h>
|
||||
@@ -747,7 +748,8 @@ static int wm8776_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);
|
||||
|
||||
Reference in New Issue
Block a user