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

Aleksander Morgado aleksander at aleksander.es
Thu May 29 23:43:53 PDT 2014


On 30/05/14 07:25, Ben Chan wrote:
> 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);
>                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Pushed to git master, thanks.

> ---
>  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)
> 


-- 
Aleksander
https://aleksander.es


More information about the libqmi-devel mailing list