diff mbox

DAPL v2.0: cma: fix debug build issue

Message ID E3280858FA94444CA49D2BA02341C983011BA209EE@orsmsx506.amr.corp.intel.com (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Arlin Davis Oct. 22, 2010, 8:17 p.m. UTC
None
diff mbox

Patch

diff --git a/dapl/openib_cma/cm.c b/dapl/openib_cma/cm.c
index 9338d55..1eb7aed 100644
--- a/dapl/openib_cma/cm.c
+++ b/dapl/openib_cma/cm.c
@@ -105,7 +105,6 @@  static void dapli_route_resolve(struct dapl_cm_id *conn)
 	int ret;
 #ifdef DAPL_DBG
 	struct rdma_addr *ipaddr = &conn->cm_id->route.addr;
-	struct ib_addr *ibaddr = &conn->cm_id->route.addr.addr.ibaddr;
 #endif
 
 	dapl_dbg_log(DAPL_DBG_TYPE_CM,
@@ -120,16 +119,16 @@  static void dapli_route_resolve(struct dapl_cm_id *conn)
 	dapl_dbg_log(DAPL_DBG_TYPE_CM,
 		     " route_resolve: SRC GID subnet %016llx id %016llx\n",
 		     (unsigned long long)
-		     ntohll(ibaddr->sgid.global.subnet_prefix),
+		     ntohll(ipaddr->addr.ibaddr.sgid.global.subnet_prefix),
 		     (unsigned long long)
-		     ntohll(ibaddr->sgid.global.interface_id));
+		     ntohll(ipaddr->addr.ibaddr.sgid.global.interface_id));
 
 	dapl_dbg_log(DAPL_DBG_TYPE_CM,
 		     " route_resolve: DST GID subnet %016llx id %016llx\n",
 		     (unsigned long long)
-		     ntohll(ibaddr->dgid.global.subnet_prefix),
+		     ntohll(ipaddr->addr.ibaddr.dgid.global.subnet_prefix),
 		     (unsigned long long)
-		     ntohll(ibaddr->dgid.global.interface_id));
+		     ntohll(ipaddr->addr.ibaddr.dgid.global.interface_id));
 
 	dapl_dbg_log(DAPL_DBG_TYPE_CM,
 		     " route_resolve: cm_id %p pdata %p plen %d rr %d ind %d\n",