Re: [PATCH] opensm/libvendor: Fix compile warnings on 64 bit machines when building --with-osmv=sim

2011-06-03 Thread Alex Netes
On 15:03 Thu 02 Jun , Hal Rosenstock wrote:
 
 osm_vendor_mlx.c: In function '__osmv_get_send_txn':
 osm_vendor_mlx.c:708: warning: format '%llX' expects type 'long long unsigned 
 int', but argument 4 has type 'uint64_t'
 osm_vendor_mlx.c:723: warning: format '%llX' expects type 'long long unsigned 
 int', but argument 4 has type 'uint64_t'
 osm_vendor_mlx.c:733: warning: format '%llX' expects type 'long long unsigned 
 int', but argument 4 has type 'uint64_t'
 osm_vendor_mlx.c:746: warning: format '%llX' expects type 'long long unsigned 
 int', but argument 4 has type 'uint64_t'
 
 osm_vendor_mlx_hca_sim.c: In function '__parse_ca_info_file':
 osm_vendor_mlx_hca_sim.c:268: warning: format '%016llx' expects type 'long 
 long unsigned int', but argument 5 has type 'uint64_t'
 
 osm_vendor_mlx_dispatcher.c: In function '__osmv_dispatch_route':
 osm_vendor_mlx_dispatcher.c:208: warning: format '%llX' expects type 'long 
 long unsigned int', but argument 4 has type 'uint64_t'
 osm_vendor_mlx_dispatcher.c:221: warning: format '%llX' expects type 'long 
 long unsigned int', but argument 4 has type 'uint64_t'
 osm_vendor_mlx_dispatcher.c: In function '__osmv_dispatch_simple_mad':
 osm_vendor_mlx_dispatcher.c:276: warning: format '%llX' expects type 'long 
 long unsigned int', but argument 4 has type 'long unsigned int'
 osm_vendor_mlx_dispatcher.c: In function '__osmv_dispatch_rmpp_mad':
 osm_vendor_mlx_dispatcher.c:331: warning: format '%llX' expects type 'long 
 long unsigned int', but argument 4 has type 'uint64_t'
 osm_vendor_mlx_dispatcher.c: In function '__osmv_dispatch_rmpp_rcv':
 osm_vendor_mlx_dispatcher.c:570: warning: format '%llX' expects type 'long 
 long unsigned int', but argument 4 has type 'uint64_t'
 osm_vendor_mlx_dispatcher.c:624: warning: format '%llX' expects type 'long 
 long unsigned int', but argument 5 has type 'uint64_t'
 osm_vendor_mlx_dispatcher.c:629: warning: format '%llX' expects type 'long 
 long unsigned int', but argument 4 has type 'long unsigned int'
 osm_vendor_mlx_dispatcher.c: In function '__osmv_dispatch_accept_seg':
 osm_vendor_mlx_dispatcher.c:661: warning: format '%llX' expects type 'long 
 long unsigned int', but argument 4 has type 'uint64_t'
 osm_vendor_mlx_dispatcher.c:674: warning: format '%llX' expects type 'long 
 long unsigned int', but argument 4 has type 'uint64_t'
 
 osm_vendor_mlx_sender.c: In function '__osmv_rmpp_send_segment':
 osm_vendor_mlx_sender.c:345: warning: format '%llX' expects type 'long long 
 unsigned int', but argument 5 has type 'ib_net64_t'
 
 Signed-off-by: Hal Rosenstock h...@mellanox.com
 ---

Applied, thanks
--
To unsubscribe from this list: send the line unsubscribe linux-rdma in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH] opensm/libvendor: Fix compile warnings on 64 bit machines when building --with-osmv=sim

2011-06-02 Thread Hal Rosenstock

osm_vendor_mlx.c: In function '__osmv_get_send_txn':
osm_vendor_mlx.c:708: warning: format '%llX' expects type 'long long unsigned 
int', but argument 4 has type 'uint64_t'
osm_vendor_mlx.c:723: warning: format '%llX' expects type 'long long unsigned 
int', but argument 4 has type 'uint64_t'
osm_vendor_mlx.c:733: warning: format '%llX' expects type 'long long unsigned 
int', but argument 4 has type 'uint64_t'
osm_vendor_mlx.c:746: warning: format '%llX' expects type 'long long unsigned 
int', but argument 4 has type 'uint64_t'

osm_vendor_mlx_hca_sim.c: In function '__parse_ca_info_file':
osm_vendor_mlx_hca_sim.c:268: warning: format '%016llx' expects type 'long long 
unsigned int', but argument 5 has type 'uint64_t'

osm_vendor_mlx_dispatcher.c: In function '__osmv_dispatch_route':
osm_vendor_mlx_dispatcher.c:208: warning: format '%llX' expects type 'long long 
unsigned int', but argument 4 has type 'uint64_t'
osm_vendor_mlx_dispatcher.c:221: warning: format '%llX' expects type 'long long 
unsigned int', but argument 4 has type 'uint64_t'
osm_vendor_mlx_dispatcher.c: In function '__osmv_dispatch_simple_mad':
osm_vendor_mlx_dispatcher.c:276: warning: format '%llX' expects type 'long long 
unsigned int', but argument 4 has type 'long unsigned int'
osm_vendor_mlx_dispatcher.c: In function '__osmv_dispatch_rmpp_mad':
osm_vendor_mlx_dispatcher.c:331: warning: format '%llX' expects type 'long long 
unsigned int', but argument 4 has type 'uint64_t'
osm_vendor_mlx_dispatcher.c: In function '__osmv_dispatch_rmpp_rcv':
osm_vendor_mlx_dispatcher.c:570: warning: format '%llX' expects type 'long long 
unsigned int', but argument 4 has type 'uint64_t'
osm_vendor_mlx_dispatcher.c:624: warning: format '%llX' expects type 'long long 
unsigned int', but argument 5 has type 'uint64_t'
osm_vendor_mlx_dispatcher.c:629: warning: format '%llX' expects type 'long long 
unsigned int', but argument 4 has type 'long unsigned int'
osm_vendor_mlx_dispatcher.c: In function '__osmv_dispatch_accept_seg':
osm_vendor_mlx_dispatcher.c:661: warning: format '%llX' expects type 'long long 
unsigned int', but argument 4 has type 'uint64_t'
osm_vendor_mlx_dispatcher.c:674: warning: format '%llX' expects type 'long long 
unsigned int', but argument 4 has type 'uint64_t'

osm_vendor_mlx_sender.c: In function '__osmv_rmpp_send_segment':
osm_vendor_mlx_sender.c:345: warning: format '%llX' expects type 'long long 
unsigned int', but argument 5 has type 'ib_net64_t'

Signed-off-by: Hal Rosenstock h...@mellanox.com
---
diff --git a/libvendor/osm_vendor_mlx.c b/libvendor/osm_vendor_mlx.c
index 9ae59a9..7a40fa5 100644
--- a/libvendor/osm_vendor_mlx.c
+++ b/libvendor/osm_vendor_mlx.c
@@ -704,7 +704,7 @@ __osmv_get_send_txn(IN osm_bind_handle_t h_bind,
if (IB_SUCCESS != ret) {
osm_log(p_bo-p_vendor-p_log, OSM_LOG_ERROR,
__osmv_get_send_txn: ERR 7313: 
-   The transaction id=0x%llX failed to init.\n,
+   The transaction id=0x% PRIx64  failed to 
init.\n,
tid);
goto get_send_txn_done;
}
@@ -719,7 +719,7 @@ __osmv_get_send_txn(IN osm_bind_handle_t h_bind,
|| FALSE == osmv_txn_is_rmpp_init_by_peer(*pp_txn)) {
osm_log(p_bo-p_vendor-p_log, OSM_LOG_ERROR,
__osmv_get_send_txn: ERR 7314: 
-   The transaction id=0x%llX is not unique. Send 
failed.\n,
+   The transaction id=0x% PRIx64  is not 
unique. Send failed.\n,
tid);
 
ret = IB_INVALID_SETTING;
@@ -729,7 +729,7 @@ __osmv_get_send_txn(IN osm_bind_handle_t h_bind,
if (TRUE == resp_expected) {
osm_log(p_bo-p_vendor-p_log, OSM_LOG_ERROR,
__osmv_get_send_txn: ERR 7315: 
-   The transaction id=%llX can't expect a 
response. Send failed.\n,
+   The transaction id=0x% PRIx64  can't expect 
a response. Send failed.\n,
tid);
 
ret = IB_INVALID_PARAMETER;
@@ -742,7 +742,7 @@ __osmv_get_send_txn(IN osm_bind_handle_t h_bind,
if (IB_SUCCESS != ret) {
osm_log(p_bo-p_vendor-p_log, OSM_LOG_ERROR,
__osmv_get_send_txn: ERR 7316: 
-   The transaction id=%llX failed to init the 
rmpp mad. Send failed.\n,
+   The transaction id=0x% PRIx64  failed to 
init the rmpp mad. Send failed.\n,
tid);
osmv_txn_done(h_bind, tid, FALSE);
goto get_send_txn_done;
diff --git a/libvendor/osm_vendor_mlx_dispatcher.c 
b/libvendor/osm_vendor_mlx_dispatcher.c
index fa5fc1f..ba6c4e8