[ewg] [PATCH 06/15] uDAPL v2.0 ucm: cleanup debug message, ntohl on p_size is incorrect

Davis, Arlin R arlin.r.davis at intel.com
Mon Apr 23 13:00:57 PDT 2012


private data size is a short, change to ntohs on log message

Signed-off-by: Arlin Davis <arlin.r.davis at intel.com>
---
 dapl/openib_ucm/cm.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dapl/openib_ucm/cm.c b/dapl/openib_ucm/cm.c
index 6efcad2..39ef28d 100644
--- a/dapl/openib_ucm/cm.c
+++ b/dapl/openib_ucm/cm.c
@@ -1003,7 +1003,7 @@ bail:
 		 " connect: ERR %s -> cm_lid %x cm_qpn %x r_psp %x p_sz=%d\n",
 		 strerror(errno), htons(cm->msg.daddr.ib.lid), 
 		 htonl(cm->msg.dqpn), htons(cm->msg.dport), 
-		 htonl(cm->msg.p_size));
+		 htons(cm->msg.p_size));
 
 	dapli_cm_free(cm);
 	return DAT_INSUFFICIENT_RESOURCES;
-- 
1.7.3






More information about the ewg mailing list