diff mbox

opensm/osm_qos_policy.c: change a log message

Message ID 4C8369B7.8060901@mellanox.co.il (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Yevgeny Kliteynik Sept. 5, 2010, 9:58 a.m. UTC
None
diff mbox

Patch

diff --git a/opensm/opensm/osm_qos_policy.c b/opensm/opensm/osm_qos_policy.c
index 72df6c8..ac49ab3 100644
--- a/opensm/opensm/osm_qos_policy.c
+++ b/opensm/opensm/osm_qos_policy.c
@@ -48,6 +48,7 @@ 
 #include <stdlib.h>
 #include <string.h>
 #include <ctype.h>
+#include <arpa/inet.h>
 #include <opensm/osm_log.h>
 #include <opensm/osm_node.h>
 #include <opensm/osm_port.h>
@@ -772,6 +773,7 @@  static void __qos_policy_validate_pkey(
 	uint8_t sl;
 	uint32_t flow;
 	uint8_t hop;
+	char gid_str[INET6_ADDRSTRLEN];

 	if (!p_qos_policy || !p_qos_match_rule || !p_prtn)
 		return;
@@ -801,9 +803,9 @@  static void __qos_policy_validate_pkey(
 				  &sl, &flow, &hop);
 	if (sl != p_prtn->sl) {
 		OSM_LOG(&p_qos_policy->p_subn->p_osm->log, OSM_LOG_DEBUG,
-			"Updating MCGroup (MLID 0x%04x) SL to "
+			"Updating MCGroup (MGID %s) SL to "
 			"match partition SL (%u)\n",
-			cl_hton16(p_prtn->mgrp->mcmember_rec.mlid),
+			inet_ntop(AF_INET6, mgid.raw, gid_str, sizeof gid_str),
 			p_prtn->sl);
 		p_prtn->mgrp->mcmember_rec.sl_flow_hop =
 			ib_member_set_sl_flow_hop(p_prtn->sl, flow, hop);