From patchwork Tue May 11 16:21:48 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sasha Khapyorsky X-Patchwork-Id: 98769 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 o4BGSawx003589 for ; Tue, 11 May 2010 16:28:56 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752722Ab0EKQ2f (ORCPT ); Tue, 11 May 2010 12:28:35 -0400 Received: from mail-wy0-f174.google.com ([74.125.82.174]:59881 "EHLO mail-wy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752511Ab0EKQ2f (ORCPT ); Tue, 11 May 2010 12:28:35 -0400 Received: by wyb32 with SMTP id 32so30264wyb.19 for ; Tue, 11 May 2010 09:28:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:received:date:from:to :cc:subject:message-id:references:mime-version:content-type :content-disposition:in-reply-to:user-agent; bh=T1slc+sO2FUXo8qFCSwNX78k2hUYqv/ivZQPi9fjFQI=; b=Z4mdUTEy91f9UPufNPflq7gD8L3MAG4E7q3LSXVJawLnWTDntR2B3CVJGd2MJ8CLD9 0c2GKz4vND6h8+9wIoShAj+GdsiR4O7MOG1sop4WKvotCnYpX2ocehVEdSqZZbKMCLu2 tLOamVnG8gHAG9F8sKizCd/FYRwsbQ0wyDEcM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=Gcm84+b8PFWl9YLGkqYse3MfmfKdLsIt4SRr8yy3CXoe3n/WHkxfSgNc1l8OweU9Zl 0oL/wNKqqh8r6Za7f0zDjZ2P2MjhzOuhD/BQcgIQqQ1bJYBL1gIaJ1mNrA9LMtRp5MHy ENBU22fAc7/88n7aGdW2SJYAEuin8DCNq80c8= Received: by 10.227.136.73 with SMTP id q9mr3867544wbt.213.1273594882652; Tue, 11 May 2010 09:21:22 -0700 (PDT) Received: from me.localdomain ([109.66.20.176]) by mx.google.com with ESMTPS id h22sm19317136wbh.9.2010.05.11.09.21.21 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 11 May 2010 09:21:22 -0700 (PDT) Received: by me.localdomain (Postfix, from userid 1000) id 239AD11DF7; Tue, 11 May 2010 19:21:48 +0300 (IDT) Date: Tue, 11 May 2010 19:21:48 +0300 From: Sasha Khapyorsky To: Yevgeny Kliteynik Cc: Linux RDMA Subject: Re: [PATCH] opensm/osm_log.h: osm_log_is_active should return true for syslog Message-ID: <20100511162148.GD28549@me> References: <4BE91DF9.4020902@dev.mellanox.co.il> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <4BE91DF9.4020902@dev.mellanox.co.il> User-Agent: Mutt/1.5.20 (2009-06-14) 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 16:29:02 +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 */