summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2018-06-25 22:16:54 +0200
committerAleksander Morgado <aleksander@aleksander.es>2018-07-10 22:42:49 +0200
commit3e53b0e325e8588d5c94290a8f5de831af10bcf7 (patch)
tree426846f67bf59d57e8e035878cf87425996b239b
parent21685b819ae3cfba164d58594f474b0e1e8c8324 (diff)
downloadlibqmi-3e53b0e325e8588d5c94290a8f5de831af10bcf7.tar.gz
qmicli,loc: print clean NMEA traces in stdout
E.g. so that the output can be consumed by gpsdecode or other programs. Suggested by Thomas Weißschuh <thomas@weissschuh.net>
-rw-r--r--src/qmicli/qmicli-loc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/qmicli/qmicli-loc.c b/src/qmicli/qmicli-loc.c
index f600f763..956f6884 100644
--- a/src/qmicli/qmicli-loc.c
+++ b/src/qmicli/qmicli-loc.c
@@ -258,7 +258,8 @@ nmea_received (QmiClientLoc *client,
qmi_indication_loc_nmea_output_get_nmea_string (output, &nmea, NULL);
if (nmea)
- g_print ("[nmea] %s\n", nmea);
+ /* Note: NMEA traces already have an EOL */
+ g_print ("%s", nmea);
}
static void