examples/bmp180/bmp180_main.c: Fix a printf format warning

This commit is contained in:
YAMAMOTO Takashi 2020-11-13 17:39:49 +09:00 committed by Xiang Xiao
parent 1c30ff6fe4
commit e4823bc62c

View File

@ -38,6 +38,7 @@
****************************************************************************/
#include <nuttx/config.h>
#include <inttypes.h>
#include <stdio.h>
#include <fcntl.h>
#include <unistd.h>
@ -66,7 +67,7 @@ int main(int argc, FAR char *argv[])
break;
}
printf("Pressure value = %05d\n", sample);
printf("Pressure value = %05" PRId32 "\n", sample);
usleep(500000);
}