arch/arm/src/lc823450/lc823450_procfs_dvfs.c: Fix printf format warnings

This commit is contained in:
YAMAMOTO Takashi 2020-11-13 19:39:34 +09:00 committed by Xiang Xiao
parent 1373f476fb
commit c3d87ed46c

View File

@ -27,6 +27,7 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <inttypes.h>
#include <stdint.h>
#include <stdbool.h>
#include <stdio.h>
@ -234,7 +235,7 @@ static ssize_t dvfs_read(FAR struct file *filep, FAR char *buffer,
linesize = snprintf(priv->line,
DVFS_LINELEN,
"fstat %d %d %d \n",
"fstat %" PRId32 " %" PRId32 " %" PRId32 " \n",
g_dvfs_freq_stat[0],
g_dvfs_freq_stat[1],
g_dvfs_freq_stat[2]);