From patchwork Tue May 11 09:06:01 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yevgeny Kliteynik X-Patchwork-Id: 98659 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o4B96Oe1022194 for ; Tue, 11 May 2010 09:06:24 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756024Ab0EKJGX (ORCPT ); Tue, 11 May 2010 05:06:23 -0400 Received: from mail.mellanox.co.il ([194.90.237.43]:56183 "EHLO mellanox.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753441Ab0EKJGX (ORCPT ); Tue, 11 May 2010 05:06:23 -0400 Received: from Internal Mail-Server by MTLPINE1 (envelope-from kliteyn@dev.mellanox.co.il) with SMTP; 11 May 2010 12:06:18 +0300 Received: from [10.4.1.29] ([10.4.1.29]) by mtlexch01.mtl.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 11 May 2010 12:06:16 +0300 Message-ID: <4BE91DF9.4020902@dev.mellanox.co.il> Date: Tue, 11 May 2010 12:06:01 +0300 From: Yevgeny Kliteynik User-Agent: Thunderbird 1.5.0.5 (X11/20060719) MIME-Version: 1.0 To: Sasha Khapyorsky CC: Linux RDMA Subject: [PATCH] opensm/osm_log.h: osm_log_is_active should return true for syslog X-OriginalArrivalTime: 11 May 2010 09:06:16.0480 (UTC) FILETIME=[366F7200:01CAF0E9] X-TM-AS-Product-Ver: SMEX-8.0.0.1181-6.000.1038-17376.006 X-TM-AS-Result: No--7.221000-8.000000-31 X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No 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 (demeter.kernel.org [140.211.167.41]); Tue, 11 May 2010 09:06:24 +0000 (UTC) diff --git a/opensm/include/opensm/osm_log.h b/opensm/include/opensm/osm_log.h index b2f105a..a494bc3 100644 --- a/opensm/include/opensm/osm_log.h +++ b/opensm/include/opensm/osm_log.h @@ -355,7 +355,7 @@ static inline void osm_log_set_level(IN osm_log_t * p_log, static inline boolean_t osm_log_is_active(IN const osm_log_t * p_log, IN osm_log_level_t level) { - return ((p_log->level & level) != 0); + return (((OSM_LOG_SYS | p_log->level) & level) != 0); } /*