[PATCH 1/2] cli,nas: fix unmatched format specifiers

Ben Chan benchan at chromium.org
Thu May 29 22:25:38 PDT 2014


This patch fixes the following unmatched format specifiers:

qmicli-nas.c:2331:18: error: format specifies type 'unsigned short' but the argument has type 'guint8'
      (aka 'unsigned char') [-Werror,-Wformat]
                 base_station_identity_code);
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~
qmicli-nas.c:2376:22: error: format specifies type 'unsigned short' but the argument has type 'guint8'
      (aka 'unsigned char') [-Werror,-Wformat]
                     element->base_station_identity_code);
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
---
 src/qmicli/qmicli-nas.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/qmicli/qmicli-nas.c b/src/qmicli/qmicli-nas.c
index 46b878b..015ff71 100644
--- a/src/qmicli/qmicli-nas.c
+++ b/src/qmicli/qmicli-nas.c
@@ -2326,7 +2326,7 @@ get_cell_location_info_ready (QmiClientNas *client,
             g_free (plmn);
         }
         g_print ("\tGERAN Absolute RF Channel Number: '%" G_GUINT16_FORMAT"'\n"
-                 "\tBase Station Identity Code: '%" G_GUINT16_FORMAT"'\n",
+                 "\tBase Station Identity Code: '%u'\n",
                  absolute_rf_channel_number,
                  base_station_identity_code);
         if (timing_advance == 0xFFFFFFFF)
@@ -2371,7 +2371,7 @@ get_cell_location_info_ready (QmiClientNas *client,
                 g_free (plmn);
             }
             g_print ("\t\tGERAN Absolute RF Channel Number: '%" G_GUINT16_FORMAT"'\n"
-                     "\t\tBase Station Identity Code: '%" G_GUINT16_FORMAT"'\n",
+                     "\t\tBase Station Identity Code: '%u'\n",
                      element->geran_absolute_rf_channel_number,
                      element->base_station_identity_code);
             if (element->rx_level == 0)
-- 
1.9.1.423.g4596e3a



More information about the libqmi-devel mailing list