[PATCH] mbimcli: show unknown CID name as "unknown" instead of "(null)"

Aleksander Morgado aleksander at aleksander.es
Sat Jul 29 10:29:49 UTC 2017


On 29/07/17 10:37, Ben Chan wrote:
> ---
>  src/mbimcli/mbimcli-basic-connect.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 

Pushed to git master, mbim-1-14, mbim-1-12 and mbim-1-10, thanks!

> diff --git a/src/mbimcli/mbimcli-basic-connect.c b/src/mbimcli/mbimcli-basic-connect.c
> index 0e78719..e147c4c 100644
> --- a/src/mbimcli/mbimcli-basic-connect.c
> +++ b/src/mbimcli/mbimcli-basic-connect.c
> @@ -603,7 +603,7 @@ query_device_services_ready (MbimDevice   *device,
>                  } else {
>                      g_string_append_printf (cids, "%s%s (%u)",
>                                              j == 0 ? "" : "\t\t                   ",
> -                                            mbim_cid_get_printable (service, device_services[i]->cids[j]),
> +                                            VALIDATE_UNKNOWN (mbim_cid_get_printable (service, device_services[i]->cids[j])),
>                                              device_services[i]->cids[j]);
>                      if (j < device_services[i]->cids_count - 1)
>                          g_string_append (cids, ",\n");
> 


-- 
Aleksander
https://aleksander.es


More information about the libmbim-devel mailing list