OpenSM: Convert display of port numbers to decimal

Signed-off-by: Hal Rosenstock <hal.rosenstock@gmail.com>

diff --git a/opensm/opensm/osm_drop_mgr.c b/opensm/opensm/osm_drop_mgr.c
index e827c26..de4e57c 100644
--- a/opensm/opensm/osm_drop_mgr.c
+++ b/opensm/opensm/osm_drop_mgr.c
@@ -103,7 +103,7 @@ static void drop_mgr_clean_physp(osm_sm_t * sm, IN osm_physp_t * p_physp)
 			    IB_LINK_ACTIVE) {
 				OSM_LOG(sm->p_log, OSM_LOG_VERBOSE,
 					"Forcing new heavy sweep. Remote "
-					"port 0x%016" PRIx64 " port num: 0x%X "
+					"port 0x%016" PRIx64 " port num: %u "
 					"was recognized in ACTIVE state\n",
 					cl_ntoh64(p_remote_physp->port_guid),
 					p_remote_physp->port_num);
@@ -117,7 +117,7 @@ static void drop_mgr_clean_physp(osm_sm_t * sm, IN osm_physp_t * p_physp)
 				p_remote_port->discovery_count = 0;
 				OSM_LOG(sm->p_log, OSM_LOG_DEBUG,
 					"Resetting discovery count of node: "
-					"0x%016" PRIx64 " port num:0x%X\n",
+					"0x%016" PRIx64 " port num:%u\n",
 					cl_ntoh64(osm_node_get_node_guid
 						  (p_remote_physp->p_node)),
 					p_remote_physp->port_num);
@@ -139,7 +139,7 @@ static void drop_mgr_clean_physp(osm_sm_t * sm, IN osm_physp_t * p_physp)
 	}
 
 	OSM_LOG(sm->p_log, OSM_LOG_DEBUG,
-		"Clearing node 0x%016" PRIx64 " physical port number 0x%X\n",
+		"Clearing node 0x%016" PRIx64 " physical port number %u\n",
 		cl_ntoh64(osm_node_get_node_guid(p_physp->p_node)),
 		p_physp->port_num);
 
diff --git a/opensm/opensm/osm_helper.c b/opensm/opensm/osm_helper.c
index 4c67c3f..e9c7eb6 100644
--- a/opensm/opensm/osm_helper.c
+++ b/opensm/opensm/osm_helper.c
@@ -780,7 +780,7 @@ osm_dump_port_info(IN osm_log_t * const p_log,
 
 		osm_log(p_log, log_level,
 			"PortInfo dump:\n"
-			"\t\t\t\tport number.............0x%X\n"
+			"\t\t\t\tport number.............%u\n"
 			"\t\t\t\tnode_guid...............0x%016" PRIx64 "\n"
 			"\t\t\t\tport_guid...............0x%016" PRIx64 "\n"
 			"\t\t\t\tm_key...................0x%016" PRIx64 "\n"
diff --git a/opensm/opensm/osm_node_info_rcv.c b/opensm/opensm/osm_node_info_rcv.c
index 86710d1..a37ce0a 100644
--- a/opensm/opensm/osm_node_info_rcv.c
+++ b/opensm/opensm/osm_node_info_rcv.c
@@ -217,7 +217,7 @@ __osm_ni_rcv_set_links(IN osm_sm_t * sm,
 	    port_num != 0 && cl_qmap_count(&sm->p_subn->sw_guid_tbl) == 0) {
 		OSM_LOG(sm->p_log, OSM_LOG_VERBOSE,
 			"Duplicate GUID found by link from a port to itself:"
-			"node 0x%" PRIx64 ", port number 0x%X\n",
+			"node 0x%" PRIx64 ", port number %u\n",
 			cl_ntoh64(osm_node_get_node_guid(p_node)), port_num);
 		p_physp = osm_node_get_physp_ptr(p_node, port_num);
 		osm_dump_dr_path(sm->p_log,
@@ -235,8 +235,8 @@ __osm_ni_rcv_set_links(IN osm_sm_t * sm,
 
 	OSM_LOG(sm->p_log, OSM_LOG_DEBUG,
 		"Creating new link between:\n\t\t\t\tnode 0x%" PRIx64
-		", port number 0x%X and\n\t\t\t\tnode 0x%" PRIx64
-		", port number 0x%X\n",
+		", port number %u and\n\t\t\t\tnode 0x%" PRIx64
+		", port number %u\n",
 		cl_ntoh64(osm_node_get_node_guid(p_node)), port_num,
 		cl_ntoh64(p_ni_context->node_guid), p_ni_context->port_num);
 
diff --git a/opensm/opensm/osm_pkey_rcv.c b/opensm/opensm/osm_pkey_rcv.c
index 9e09806..d845c20 100644
--- a/opensm/opensm/osm_pkey_rcv.c
+++ b/opensm/opensm/osm_pkey_rcv.c
@@ -127,7 +127,7 @@ void osm_pkey_rcv_process(IN void *context, IN void *data)
 	 */
 	if (!p_physp) {
 		OSM_LOG(sm->p_log, OSM_LOG_ERROR, "ERR 4807: "
-			"Got invalid port number 0x%X\n", port_num);
+			"Got invalid port number %u\n", port_num);
 		goto Exit;
 	}
 
diff --git a/opensm/opensm/osm_port.c b/opensm/opensm/osm_port.c
index 54a5fd1..eb05408 100644
--- a/opensm/opensm/osm_port.c
+++ b/opensm/opensm/osm_port.c
@@ -769,7 +769,7 @@ osm_physp_set_pkey_tbl(IN osm_log_t * p_log,
 	if (block_num >= max_blocks) {
 		OSM_LOG(p_log, OSM_LOG_ERROR, "ERR 4108: "
 			"Got illegal set for block number:%u "
-			"For GUID: %" PRIx64 " port number:0x%X\n",
+			"For GUID: %" PRIx64 " port number:%u\n",
 			block_num,
 			cl_ntoh64(p_physp->p_node->node_info.node_guid),
 			p_physp->port_num);
diff --git a/opensm/opensm/osm_port_info_rcv.c b/opensm/opensm/osm_port_info_rcv.c
index a820069..b886a52 100644
--- a/opensm/opensm/osm_port_info_rcv.c
+++ b/opensm/opensm/osm_port_info_rcv.c
@@ -488,7 +488,7 @@ osm_pi_rcv_process_set(IN osm_sm_t * sm, IN osm_node_t * const p_node,
 
 	OSM_LOG(sm->p_log, OSM_LOG_DEBUG,
 		"Received logical SetResp() for GUID 0x%" PRIx64
-		", port num 0x%X"
+		", port num %u"
 		"\n\t\t\t\tfor parent node GUID 0x%" PRIx64
 		" TID 0x%" PRIx64 "\n",
 		cl_ntoh64(port_guid), port_num,
@@ -598,7 +598,7 @@ void osm_pi_rcv_process(IN void *context, IN void *data)
 		   most likely due to a subnet sweep in progress.
 		 */
 		OSM_LOG(sm->p_log, OSM_LOG_VERBOSE,
-			"Discovered port num 0x%X with GUID 0x%" PRIx64
+			"Discovered port num %u with GUID 0x%" PRIx64
 			" for parent node GUID 0x%" PRIx64
 			", TID 0x%" PRIx64 "\n",
 			port_num, cl_ntoh64(port_guid),
@@ -613,7 +613,7 @@ void osm_pi_rcv_process(IN void *context, IN void *data)
 		 */
 		if (!p_physp) {
 			OSM_LOG(sm->p_log, OSM_LOG_VERBOSE,
-				"Initializing port number 0x%X\n", port_num);
+				"Initializing port number %u\n", port_num);
 			p_physp = &p_node->physp_table[port_num];
 			osm_physp_init(p_physp,
 				       port_guid,
diff --git a/opensm/opensm/osm_slvl_map_rcv.c b/opensm/opensm/osm_slvl_map_rcv.c
index 000c2a6..e7f1cd2 100644
--- a/opensm/opensm/osm_slvl_map_rcv.c
+++ b/opensm/opensm/osm_slvl_map_rcv.c
@@ -135,7 +135,7 @@ void osm_slvl_rcv_process(IN void *context, IN void *p_data)
 	 */
 	if (!p_physp) {
 		OSM_LOG(sm->p_log, OSM_LOG_ERROR,
-			"Got invalid port number 0x%X\n", out_port_num);
+			"Got invalid port number %u\n", out_port_num);
 		goto Exit;
 	}
 
diff --git a/opensm/opensm/osm_trap_rcv.c b/opensm/opensm/osm_trap_rcv.c
index 0213915..b7c2c77 100644
--- a/opensm/opensm/osm_trap_rcv.c
+++ b/opensm/opensm/osm_trap_rcv.c
@@ -129,7 +129,7 @@ osm_trap_rcv_aging_tracker_callback(IN uint64_t key,
 	p_physp = get_physp_by_lid_and_num(sm, lid, port_num);
 	if (!p_physp)
 		OSM_LOG(sm->p_log, OSM_LOG_VERBOSE,
-			"Cannot find port num:0x%X with lid:%u\n",
+			"Cannot find port num:%u with lid:%u\n",
 			port_num, lid);
 	/* make sure the physp is still valid */
 	/* If the health port was false - set it to true */
diff --git a/opensm/opensm/osm_vl_arb_rcv.c b/opensm/opensm/osm_vl_arb_rcv.c
index 725cc3b..674c2d6 100644
--- a/opensm/opensm/osm_vl_arb_rcv.c
+++ b/opensm/opensm/osm_vl_arb_rcv.c
@@ -132,7 +132,7 @@ void osm_vla_rcv_process(IN void *context, IN void *data)
 	 */
 	if (!p_physp) {
 		OSM_LOG(sm->p_log, OSM_LOG_ERROR,
-			"Got invalid port number 0x%X\n", port_num);
+			"Got invalid port number %u\n", port_num);
 		goto Exit;
 	}
 

