From fa19b2b9b1412d3eeb515afe41c55ac414acc982 Mon Sep 17 00:00:00 2001 From: Teemu Ikonen Date: Thu, 26 Aug 2021 17:02:10 +0300 Subject: cli, location: Fix multi-sentence NMEA message output Multi-sentence NMEA messages were printed as is, that is with linebreaks, which made mmcli --location-get output look broken. Split NMEA sentences with linebreaks to separate output list items, so that they line up correctly. --- cli/mmcli-modem-location.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/mmcli-modem-location.c') diff --git a/cli/mmcli-modem-location.c b/cli/mmcli-modem-location.c index 2865b69c..936ff425 100644 --- a/cli/mmcli-modem-location.c +++ b/cli/mmcli-modem-location.c @@ -568,7 +568,7 @@ get_location_process_reply (MMLocation3gpp *location_3gpp, mmcli_output_string_take (MMC_F_LOCATION_3GPP_LAC, lac); mmcli_output_string_take (MMC_F_LOCATION_3GPP_TAC, tac); mmcli_output_string_take (MMC_F_LOCATION_3GPP_CID, cid); - mmcli_output_string_array_take (MMC_F_LOCATION_GPS_NMEA, nmea, TRUE); + mmcli_output_string_array_multiline_take (MMC_F_LOCATION_GPS_NMEA, nmea); mmcli_output_string (MMC_F_LOCATION_GPS_UTC, gps_utc); mmcli_output_string_take (MMC_F_LOCATION_GPS_LONG, gps_longitude); mmcli_output_string_take (MMC_F_LOCATION_GPS_LAT, gps_latitude); -- cgit v1.2.3-70-g09d2