mcm_rereg_test.c: Fix a couple of output messages
PATCH 1/1 mcm_rereg_test.c: Fix a couple of output messages
In rereg_send, it's not a leave but query
Fix endian of guid in rereg_send_all
Signed-off-by Hal Rosenstock <[email protected]>
---
src/mcm_rereg_test.c +4 -2
@@ -101,7 +101,9 @@ static int rereg_send(int port, int agent, ib_portid_t * dport,build_mcm_rec_umad (umad, dport, method, comp_mask, data);if (umad_send (port, agent, umad, len,TMO ,0 ) <0 ) { -err ("umad_send leave failed: %s\n" ,strerror (errno)); +err ("umad_send %s failed: %s\n" , + (method ==IB_MAD_METHOD_GET ) ?"query" :"non query" , +strerror (errno));return -1 ; } dbg("umad_send %d: tid = 0x%016" PRIx64 "\n", method,
@@ -164,7 +166,7 @@ static int rereg_send_all(int port, int agent, ib_portid_t * dport,rereg_port_gid (port, agent, dport, umad, len, list[i].gid);if (ret <0 ) {err ("rereg_send_all: rereg_port_gid 0x%016" PRIx64 -" failed\n" , list[i].guid); +" failed\n" ,ntohll (list[i].guid));continue ; } list[i].trid = mad_get_field64(umad_get_mad(umad), 0,
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): 4FF5DC2E.6000904-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org
Ira Weiny
AppliedQuoted 5 lines · On Thu, 05 Jul 2012 14:25:50 -0400 Hal Rosenstock…
In
rereg_send, it's not a leave but query
Fix endian of guid inrereg_send_allSigned-off-by Hal Rosenstock <[email protected]>
Thanks applied,
Ira
Quoted 29 lines
---
src/mcm_rereg_test.c +4
-3@@ -101,7 +101,9 @@ static int rereg_send(int port, int agent, ib_portid_t * dport,build_mcm_rec_umad (umad, dport, method, comp_mask, data);if (umad_send (port, agent, umad, len,TMO ,0 ) <0 ) { -err ("umad_send leave failed: %s\n" ,strerror (errno)); +err ("umad_send %s failed: %s\n" , + (method ==IB_MAD_METHOD_GET ) ?"query" :"non query" , +strerror (errno));return -1 ; } dbg("umad_send %d: tid = 0x%016" PRIx64 "\n", method,@@ -164,7 +166,7 @@ static int rereg_send_all(int port, int agent, ib_portid_t * dport,rereg_port_gid (port, agent, dport, umad, len, list[i].gid);if (ret <0 ) {err ("rereg_send_all: rereg_port_gid 0x%016" PRIx64 -" failed\n" , list[i].guid); +" failed\n" ,ntohll (list[i].guid));continue ; } list[i].trid = mad_get_field64(umad_get_mad(umad), 0, --To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Signature · 9 lines
Ira Weiny Member of Technical Staff Lawrence Livermore National Lab 925-423-8008 [email protected] -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html