drivers/audio/vs1053.c: Fix a printf format warning

This commit is contained in:
YAMAMOTO Takashi 2020-11-13 19:02:08 +09:00 committed by Xiang Xiao
parent 17f3e2dd23
commit 61bf05d26e

View File

@ -45,6 +45,7 @@
#include <sys/ioctl.h>
#include <math.h>
#include <inttypes.h>
#include <stdint.h>
#include <stdbool.h>
#include <stdio.h>
@ -1486,7 +1487,8 @@ static int vs1053_start(FAR struct audio_lowerhalf_s *lower)
/* Create a message queue for the worker thread */
snprintf(dev->mqname, sizeof(dev->mqname), "/tmp/%X", dev);
snprintf(dev->mqname, sizeof(dev->mqname), "/tmp/%" PRIXPTR,
(uintptr_t)dev);
attr.mq_maxmsg = 16;
attr.mq_msgsize = sizeof(struct audio_msg_s);
attr.mq_curmsgs = 0;