[PATCH] Use G_GUINT_64_FORMAT not "%lu" to format a guint64
Aleksander Morgado
aleksander at lanedo.com
Thu May 30 05:45:43 PDT 2013
> cli/mbimcli-basic-connect.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/cli/mbimcli-basic-connect.c b/cli/mbimcli-basic-connect.c
> index 57231a8..dc099fb 100644
> --- a/cli/mbimcli-basic-connect.c
> +++ b/cli/mbimcli-basic-connect.c
> @@ -909,8 +909,8 @@ packet_service_ready (MbimDevice *device,
> "\t Network error: '%s'\n"
> "\t Packet service state: '%s'\n"
> "\tAvailable data classes: '%s'\n"
> - "\t Uplink speed: '%lu bps'\n"
> - "\t Downlink speed: '%lu bps'\n",
> + "\t Uplink speed: '%" G_GUINT_64_FORMAT " bps'\n"
> + "\t Downlink speed: '%" G_GUINT_64_FORMAT " bps'\n",
> mbim_device_get_path_display (device),
> VALIDATE_UNKNOWN (mbim_nw_error_get_string (nw_error)),
> VALIDATE_UNKNOWN (mbim_packet_service_state_get_string (packet_service_state)),
>
I'll assume you wanted to use "G_GUINT64_FORMAT" instead of
"G_GUINT_64_FORMAT" :)
Pushed after fixing that.
Thanks!
--
Aleksander
More information about the libmbim-devel
mailing list