mmcli: prefix all NMEA traces in order to get a pretty print

This commit is contained in:
Aleksander Morgado
2012-03-29 09:18:04 +02:00
parent 422ed7b633
commit f1d4e0fb63
4 changed files with 49 additions and 43 deletions
+6 -3
View File
@@ -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"