diff mbox

[opensm] osm_state_mgr.c: Fix error print in state_mgr_check_tbl_consistency()

Message ID 528D452C.1030405@dev.mellanox.co.il (mailing list archive)
State Accepted
Delegated to: Hal Rosenstock
Headers show

Commit Message

Hal Rosenstock Nov. 20, 2013, 11:26 p.m. UTC
From: Alex Netes <alexne@mellanox.com>

Need to print NodeDesc and PortNum for both p_port_ref and
p_port_stored.

Signed-off-by: Alex Netes <alexne@mellanox.com>
---
 opensm/osm_state_mgr.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/opensm/osm_state_mgr.c b/opensm/osm_state_mgr.c
index bf6181a..36e9f6c 100644
--- a/opensm/osm_state_mgr.c
+++ b/opensm/osm_state_mgr.c
@@ -1312,8 +1312,8 @@  static void state_mgr_check_tbl_consistency(IN osm_sm_t * sm)
 				p_port_ref->p_node->print_desc,
 				p_port_ref->p_physp->port_num,
 				cl_ntoh64(osm_port_get_guid(p_port_stored)),
-				p_port_ref->p_node->print_desc,
-				p_port_ref->p_physp->port_num);
+				p_port_stored->p_node->print_desc,
+				p_port_stored->p_physp->port_num);
 
 		/* In any of these cases we want to set NULL in the
 		 * port_lid_tbl, since this entry is invalid. Also, make sure