From patchwork Sun Sep 5 15:24:54 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yevgeny Kliteynik X-Patchwork-Id: 156711 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id o85FPBqF017210 for ; Sun, 5 Sep 2010 15:25:11 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751627Ab0IEPZJ (ORCPT ); Sun, 5 Sep 2010 11:25:09 -0400 Received: from mail.mellanox.co.il ([194.90.237.43]:53139 "EHLO mellanox.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751134Ab0IEPZJ (ORCPT ); Sun, 5 Sep 2010 11:25:09 -0400 Received: from Internal Mail-Server by MTLPINE2 (envelope-from kliteyn@mellanox.co.il) with SMTP; 5 Sep 2010 18:24:27 +0300 Received: from [10.4.1.29] (10.4.1.29) by mtlmail01.mtl.com (10.0.8.12) with Microsoft SMTP Server id 8.2.254.0; Sun, 5 Sep 2010 18:25:04 +0300 Message-ID: <4C83B646.7070903@mellanox.co.il> Date: Sun, 5 Sep 2010 18:24:54 +0300 From: Yevgeny Kliteynik Reply-To: kliteyn@dev.mellanox.co.il User-Agent: Thunderbird 1.5.0.5 (X11/20060719) MIME-Version: 1.0 To: Sasha Khapyorsky , Linux RDMA Subject: [PATCH v2] opensm/osm_qos_policy.c: change a log message Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Sun, 05 Sep 2010 15:25:11 +0000 (UTC) diff --git a/opensm/opensm/osm_qos_policy.c b/opensm/opensm/osm_qos_policy.c index 72df6c8..fa04e10 100644 --- a/opensm/opensm/osm_qos_policy.c +++ b/opensm/opensm/osm_qos_policy.c @@ -48,6 +48,7 @@ #include #include #include +#include #include #include #include @@ -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,10 @@ 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, p_prtn->mgrp->mcmember_rec.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);