fix build for 64 bit systems
authorJohn Crispin <blogic@openwrt.org>
Wed, 10 Dec 2014 05:22:21 +0000 (06:22 +0100)
committerJohn Crispin <blogic@openwrt.org>
Wed, 10 Dec 2014 05:22:21 +0000 (06:22 +0100)
Signed-off-by: John Crispin <blogic@openwrt.org>
cli.c

diff --git a/cli.c b/cli.c
index 17809c2d9b8c8144b23d187ebd6f3d39cfd7a777..e6b34d77bde03c231eb177b04110b2dcd65909a9 100644 (file)
--- a/cli.c
+++ b/cli.c
@@ -177,8 +177,8 @@ mbim_attach_response(void *buffer, int len)
                mbim_enum_string(mbim_nw_error_values, le32toh(ps->nwerror)));
        printf("  packetservicestate: %04X - %s\n", le32toh(ps->packetservicestate),
                mbim_enum_string(mbim_packet_service_state_values, le32toh(ps->packetservicestate)));
-       printf("  uplinkspeed: %"PRIu64"\n", le64toh(ps->uplinkspeed));
-       printf("  downlinkspeed: %"PRIu64"\n", le64toh(ps->downlinkspeed));
+       printf("  uplinkspeed: %"PRIu64"\n", (uint64_t) le64toh(ps->uplinkspeed));
+       printf("  downlinkspeed: %"PRIu64"\n", (uint64_t) le64toh(ps->downlinkspeed));
 
        if (MBIM_PACKET_SERVICE_STATE_ATTACHED == le32toh(ps->packetservicestate))
                return 0;