mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 16:50:55 +08:00
drivers/audio/audio_null.c: Fix a printf format warning
This commit is contained in:
committed by
Xiang Xiao
parent
2cc96365b0
commit
5ef5d2c598
@@ -46,6 +46,7 @@
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <inttypes.h>
|
||||
#include <fcntl.h>
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
@@ -528,7 +529,8 @@ static int null_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