Skip to content

Commit

Permalink
testing/sensortest/sensortest.c: Fix a printf format warning
Browse files Browse the repository at this point in the history
  • Loading branch information
yamt authored and xiaoxiang781216 committed Nov 16, 2020
1 parent 1c6c2ad commit c1b11a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testing/sensortest/sensortest.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ static void print_valf(const char *buffer, const char *name)
static void print_valf2(const char *buffer, const char *name)
{
struct sensor_event_baro *event = (struct sensor_event_baro *)buffer;
printf("%s: timestamp:%llu value1:%.2f value2:%.2f\n",
printf("%s: timestamp:%" PRIu64 " value1:%.2f value2:%.2f\n",
name, event->timestamp, event->pressure, event->temperature);
}

Expand Down

0 comments on commit c1b11a1

Please sign in to comment.