examples/bmi160: Fix printf format warning
Fix printf format warning by -Wformat.
This commit is contained in:
parent
0dc9be9596
commit
814f10544e
@ -38,6 +38,7 @@
|
||||
****************************************************************************/
|
||||
|
||||
#include <nuttx/config.h>
|
||||
#include <inttypes.h>
|
||||
#include <fcntl.h>
|
||||
#include <stdio.h>
|
||||
|
||||
@ -86,7 +87,7 @@ int main(int argc, FAR char *argv[])
|
||||
|
||||
if (prev != data.sensor_time)
|
||||
{
|
||||
printf("[%d] %d, %d, %d / %d, %d, %d\n",
|
||||
printf("[%" PRIu32 "] %d, %d, %d / %d, %d, %d\n",
|
||||
data.sensor_time,
|
||||
data.gyro.x, data.gyro.y, data.gyro.z,
|
||||
data.accel.x, data.accel.y, data.accel.z);
|
||||
|
Loading…
x
Reference in New Issue
Block a user