[PATCH] qmicli,loc: fix conversion from QmiLocTimeSource to string

Ben Chan benchan at chromium.org
Tue Jul 10 23:02:32 UTC 2018


This patch fixes an incorrect use of g_loc_reliability_get_string() on a
QmiLocTimeSource value.
---
 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



More information about the libqmi-devel mailing list