aboutsummaryrefslogtreecommitdiff
path: root/cli/mmcli-modem-location.c
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2012-03-28 15:15:12 +0200
committerAleksander Morgado <aleksander@lanedo.com>2012-03-29 09:18:04 +0200
commitf1d4e0fb637bd9c3f5ad72c22cb5a716c3e669c8 (patch)
treee2b27146ac7433b201e39aff92d15a88407bcc7b /cli/mmcli-modem-location.c
parent422ed7b63331d1cbf8f58dcc694404bbb8b4a335 (diff)
mmcli: prefix all NMEA traces in order to get a pretty print
Diffstat (limited to 'cli/mmcli-modem-location.c')
-rw-r--r--cli/mmcli-modem-location.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/cli/mmcli-modem-location.c b/cli/mmcli-modem-location.c
index efa2c63d..51382538 100644
--- a/cli/mmcli-modem-location.c
+++ b/cli/mmcli-modem-location.c
@@ -342,10 +342,13 @@ get_location_process_reply (MMLocation3gpp *location_3gpp,
full = mm_location_gps_nmea_build_full (location_gps_nmea);
if (full) {
+ gchar *prefixed;
+
+ prefixed = mmcli_prefix_newlines (" | ", full);
g_print (" -------------------------\n"
- " GPS NMEA traces |\n"
- " %s\n",
- full);
+ " GPS NMEA traces | %s\n",
+ prefixed);
+ g_free (prefixed);
g_free (full);
} else
g_print (" -------------------------\n"