[ofa-general] [PATCH v3] [TRIVIAL] opensm/osm_state_mgr.c: fixing log message

Yevgeny Kliteynik kliteyn at dev.mellanox.co.il
Mon Jun 30 01:52:01 PDT 2008


Hi Sasha,

Fixing some log messages (was "fixing some data types")
in osm_state_mgr.c to remove compiler warnings.

Signed-off-by: Yevgeny Kliteynik <kliteyn at dev.mellanox.co.il>
---
 opensm/opensm/osm_state_mgr.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/opensm/opensm/osm_state_mgr.c b/opensm/opensm/osm_state_mgr.c
index 9a8409b..87d6d5b 100644
--- a/opensm/opensm/osm_state_mgr.c
+++ b/opensm/opensm/osm_state_mgr.c
@@ -920,7 +920,7 @@ static void __osm_state_mgr_check_tbl_consistency(IN osm_sm_t * sm)
 			 * with the new lid we wanted to give it in our
 			 * port_lid_tbl. */
 			OSM_LOG(sm->p_log, OSM_LOG_ERROR, "ERR 3322: "
-				"lid %u is wrongly assigned to port 0x%016"
+				"lid %zu is wrongly assigned to port 0x%016"
 				PRIx64 " (\'%s\' port %u) in port_lid_tbl\n",
 				lid,
 				cl_ntoh64(osm_port_get_guid(p_port_stored)),
@@ -933,7 +933,7 @@ static void __osm_state_mgr_check_tbl_consistency(IN osm_sm_t * sm)
 			 * original lid. */
 			OSM_LOG(sm->p_log, OSM_LOG_ERROR, "ERR 3323: "
 				"port 0x%016" PRIx64 " (\'%s\' port %u)"
-				" exists in new port_lid_tbl under lid %u,"
+				" exists in new port_lid_tbl under lid %zu,"
 				" but missing in subnet port_lid_tbl db\n",
 				cl_ntoh64(osm_port_get_guid(p_port_ref)),
 				p_port_ref->p_node->print_desc,
@@ -944,7 +944,7 @@ static void __osm_state_mgr_check_tbl_consistency(IN osm_sm_t * sm)
 			 * it didn't reach it, and p_port_ref also didn't get
 			 * the lid update. */
 			OSM_LOG(sm->p_log, OSM_LOG_ERROR, "ERR 3324: "
-				"lid %u has port 0x%016" PRIx64
+				"lid %zu has port 0x%016" PRIx64
 				" (\'%s\' port %u) in new port_lid_tbl db, "
 				"and port 0x%016" PRIx64 " (\'%s\' port %u)"
 				" in subnet port_lid_tbl db\n", lid,
-- 
1.5.1.4




More information about the general mailing list