aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoland Dreier <rolandd@cisco.com>2005-08-30 21:34:01 +0000
committerRoland Dreier <rolandd@cisco.com>2006-11-09 11:35:57 -0800
commitac517afa86d21b19be1911cec9060924581f17b1 (patch)
treebe16dbd985ae0cd2395f25a8835c57feec030aff
parentc4e00e75adeac37127405c9237477dcdb8749a3b (diff)
downloadlibibverbs-ac517afa86d21b19be1911cec9060924581f17b1.tar.gz
Fix warnings on platforms where uint64_t != unsigned long long
Signed-off-by: Roland Dreier <rolandd@cisco.com>
-rw-r--r--examples/devinfo.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/devinfo.c b/examples/devinfo.c
index e6ec4f3..e77c532 100644
--- a/examples/devinfo.c
+++ b/examples/devinfo.c
@@ -205,8 +205,8 @@ static int print_hca_cap(struct ibv_device *ib_dev, uint8_t ib_port)
printf("\tfw_ver:\t\t\t\t%s\n", fw_ver_str(device_attr.fw_ver, buf));
printf("\tnode_guid:\t\t\t%s\n", guid_str(device_attr.node_guid, buf));
printf("\tsys_image_guid:\t\t\t%s\n", guid_str(device_attr.sys_image_guid, buf));
- printf("\tmax_mr_size:\t\t\t0x%llx\n", device_attr.max_mr_size);
- printf("\tpage_size_cap:\t\t\t0x%llx\n", device_attr.page_size_cap);
+ printf("\tmax_mr_size:\t\t\t0x%llx\n", (unsigned long long) device_attr.max_mr_size);
+ printf("\tpage_size_cap:\t\t\t0x%llx\n", (unsigned long long) device_attr.page_size_cap);
printf("\tvendor_id:\t\t\t0x%04x\n", device_attr.vendor_id);
printf("\tvendor_part_id:\t\t\t%d\n", device_attr.vendor_part_id);
printf("\thw_ver:\t\t\t\t0x%X\n", device_attr.hw_ver);
@@ -311,7 +311,7 @@ static void usage(const char *argv0)
printf("\n");
printf("Options:\n");
printf(" -d, --ib-dev=<dev> use IB device <dev> (default first device found)\n");
- printf(" -i, --ib-port=<port> use port <port> of IB device (default 1)\n");
+ printf(" -i, --ib-port=<port> use port <port> of IB device (default all ports)\n");
printf(" -l, --list print only the IB devices names\n");
printf(" -v, --verbose print all the attributes of the IB device(s)\n");
}