[PATCH] qmicli, loc: fix conversion from QmiLocTimeSource to string
Aleksander Morgado
aleksander at aleksander.es
Tue Jul 10 23:15:28 UTC 2018
On Wed, Jul 11, 2018 at 1:02 AM, Ben Chan <benchan at chromium.org> wrote:
> This patch fixes an incorrect use of g_loc_reliability_get_string() on a
> QmiLocTimeSource value.
Oops, please merge it
> ---
> src/qmicli/qmicli-loc.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/qmicli/qmicli-loc.c b/src/qmicli/qmicli-loc.c
> index 2b7e858..8c9c169 100644
> --- a/src/qmicli/qmicli-loc.c
> +++ b/src/qmicli/qmicli-loc.c
> @@ -480,7 +480,7 @@ position_report_received (QmiClientLoc *client,
> g_print (" time uncertainty: n/a\n");
>
> if (qmi_indication_loc_position_report_output_get_time_source (output, &time_source, NULL))
> - g_print (" time source: %s\n", qmi_loc_reliability_get_string (time_source));
> + g_print (" time source: %s\n", qmi_loc_time_source_get_string (time_source));
> else
> g_print (" time source: n/a\n");
>
> --
> 2.18.0.203.gfac676dfb9-goog
>
--
Aleksander
https://aleksander.es
More information about the libqmi-devel
mailing list