sensortest: add '\n' for gps output debug log
MIRTOS-328 Change-Id: Iae2925beae2d63c3ce212875109c3a25cb941a90 Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
This commit is contained in:
parent
920d925806
commit
d838666844
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* apps/testing/sensortest.c
|
||||
* apps/testing/sensortest/sensortest.c
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
@ -142,11 +142,11 @@ static void print_gps(const char *buffer, const char *name)
|
||||
{
|
||||
struct sensor_event_gps *event = (struct sensor_event_gps *)buffer;
|
||||
|
||||
printf("%s: year: %d month: %d day: %d hour: %d min: %d sec: %d msec: %d",
|
||||
name, event->year, event->month, event->day, event->hour,
|
||||
event->min, event->sec, event->msec);
|
||||
printf("%s: yaw: %.4f height: %.4f speed: %.4f latitude: %.4f"
|
||||
"longitude: %.4f", name, event->yaw, event->height, event->speed,
|
||||
printf("%s: year: %d month: %d day: %d hour: %d min: %d sec: %d "
|
||||
"msec: %d\n", name, event->year, event->month, event->day,
|
||||
event->hour, event->min, event->sec, event->msec);
|
||||
printf("%s: yaw: %.4f height: %.4f speed: %.4f latitude: %.4f "
|
||||
"longitude: %.4f\n", name, event->yaw, event->height, event->speed,
|
||||
event->latitude, event->longitude);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user