[ofw] [PATCH] DAPL v2.0: cma: fix debug build issue

Davis, Arlin R arlin.r.davis at intel.com
Fri Oct 22 13:17:37 PDT 2010


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

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",
-- 
1.7.3






More information about the ofw mailing list