[ofa-general] [PATCH] ibstat.c: use htohl() for 32-bit capmask conversion
Sasha Khapyorsky
sashak at voltaire.com
Fri May 1 12:50:23 PDT 2009
capmask field was changed to be 32-bit, so use ntohl() instead of
ntohll(). Casting is also not needed then.
Signed-off-by: Sasha Khapyorsky <sashak at voltaire.com>
---
infiniband-diags/src/ibstat.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/infiniband-diags/src/ibstat.c b/infiniband-diags/src/ibstat.c
index 7985be1..06f39ae 100644
--- a/infiniband-diags/src/ibstat.c
+++ b/infiniband-diags/src/ibstat.c
@@ -111,7 +111,7 @@ port_dump(umad_port_t *port, int alone)
printf("%sBase lid: %d\n", pre, port->base_lid);
printf("%sLMC: %d\n", pre, port->lmc);
printf("%sSM lid: %d\n", pre, port->sm_lid);
- printf("%sCapability mask: 0x%08x\n", pre, (unsigned)ntohll(port->capmask));
+ printf("%sCapability mask: 0x%08x\n", pre, ntohl(port->capmask));
printf("%sPort GUID: 0x%016llx\n", pre, (long long unsigned)ntohll(port->port_guid));
return 0;
}
--
1.6.1.2.319.gbd9e
More information about the general
mailing list