boards/arm/stm32/nucleo-f334r8/src/stm32_highpri.c: Fix a printf format warning
This commit is contained in:
parent
ec25462668
commit
a4fc870692
@ -24,6 +24,7 @@
|
|||||||
|
|
||||||
#include <nuttx/config.h>
|
#include <nuttx/config.h>
|
||||||
|
|
||||||
|
#include <inttypes.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <strings.h>
|
#include <strings.h>
|
||||||
@ -543,10 +544,10 @@ int highpri_main(int argc, char *argv[])
|
|||||||
g_highpri.lock = true;
|
g_highpri.lock = true;
|
||||||
|
|
||||||
#ifndef CONFIG_STM32_ADC1_DMA
|
#ifndef CONFIG_STM32_ADC1_DMA
|
||||||
printf("%d [%d] %0.3fV\n", g_highpri.cntr1, g_highpri.current,
|
printf("%" PRId32 " [%d] %0.3fV\n", g_highpri.cntr1, g_highpri.current,
|
||||||
g_highpri.r_volt[g_highpri.current]);
|
g_highpri.r_volt[g_highpri.current]);
|
||||||
#else
|
#else
|
||||||
printf("%d ", g_highpri.cntr1);
|
printf("%" PRId32 " ", g_highpri.cntr1);
|
||||||
|
|
||||||
for (i = 0; i < REG_NCHANNELS; i += 1)
|
for (i = 0; i < REG_NCHANNELS; i += 1)
|
||||||
{
|
{
|
||||||
@ -559,7 +560,7 @@ int highpri_main(int argc, char *argv[])
|
|||||||
#ifdef HIGHPRI_HAVE_INJECTED
|
#ifdef HIGHPRI_HAVE_INJECTED
|
||||||
/* Print data from injected channels */
|
/* Print data from injected channels */
|
||||||
|
|
||||||
printf("%d ", g_highpri.cntr2);
|
printf("%" PRId32 " ", g_highpri.cntr2);
|
||||||
|
|
||||||
for (i = 0; i < INJ_NCHANNELS; i += 1)
|
for (i = 0; i < INJ_NCHANNELS; i += 1)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user