From patchwork Sun Sep 5 09:58:15 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yevgeny Kliteynik X-Patchwork-Id: 156471 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 o859wmP4008857 for ; Sun, 5 Sep 2010 09:58:48 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754091Ab0IEJ6o (ORCPT ); Sun, 5 Sep 2010 05:58:44 -0400 Received: from mail.mellanox.co.il ([194.90.237.43]:50732 "EHLO mellanox.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752231Ab0IEJ6n (ORCPT ); Sun, 5 Sep 2010 05:58:43 -0400 Received: from Internal Mail-Server by MTLPINE2 (envelope-from kliteyn@mellanox.co.il) with SMTP; 5 Sep 2010 12:58:02 +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 12:58:39 +0300 Message-ID: <4C8369B7.8060901@mellanox.co.il> Date: Sun, 5 Sep 2010 12:58:15 +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] 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 09:58:48 +0000 (UTC) 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 #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,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);