From patchwork Mon May 17 07:22:04 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yevgeny Kliteynik X-Patchwork-Id: 100042 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 o4H7MNPO022994 for ; Mon, 17 May 2010 07:22:23 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752297Ab0EQHWW (ORCPT ); Mon, 17 May 2010 03:22:22 -0400 Received: from mail.mellanox.co.il ([194.90.237.43]:36122 "EHLO mellanox.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751588Ab0EQHWV (ORCPT ); Mon, 17 May 2010 03:22:21 -0400 Received: from Internal Mail-Server by MTLPINE1 (envelope-from kliteyn@dev.mellanox.co.il) with SMTP; 17 May 2010 10:22:30 +0300 Received: from [10.4.1.29] ([10.4.1.29]) by mtlexch01.mtl.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 17 May 2010 10:22:19 +0300 Message-ID: <4BF0EE9C.7030607@dev.mellanox.co.il> Date: Mon, 17 May 2010 10:22:04 +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.c: add OSM_LOG_SYS to default flags X-OriginalArrivalTime: 17 May 2010 07:22:19.0504 (UTC) FILETIME=[AF62EF00:01CAF591] X-TM-AS-Product-Ver: SMEX-8.0.0.1181-6.000.1038-17388.005 X-TM-AS-Result: No--9.768700-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]); Mon, 17 May 2010 07:22:23 +0000 (UTC) diff --git a/opensm/opensm/osm_log.c b/opensm/opensm/osm_log.c index 54c2f36..bd4a200 100644 --- a/opensm/opensm/osm_log.c +++ b/opensm/opensm/osm_log.c @@ -119,7 +119,7 @@ void osm_log(IN osm_log_t * p_log, IN osm_log_level_t verbosity, #endif /* __WIN__ */ /* If this is a call to syslog - always print it */ - if (!(verbosity & (OSM_LOG_SYS | p_log->level))) + if (!(verbosity & p_log->level)) return; va_start(args, p_str); @@ -306,7 +306,7 @@ ib_api_status_t osm_log_init_v2(IN osm_log_t * p_log, IN boolean_t flush, IN unsigned long max_size, IN boolean_t accum_log_file) { - p_log->level = log_flags; + p_log->level = log_flags | OSM_LOG_SYS; p_log->flush = flush; p_log->count = 0; p_log->max_size = max_size << 20; /* convert size in MB to bytes */