Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp672555yba; Fri, 26 Apr 2019 06:58:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqxtEVya5meG2KMwELObprqMCRA1Jnstt0qBlxSiko3QvXRGQePd5jxtQFgLOECSd5dGLOHQ X-Received: by 2002:aa7:8dcf:: with SMTP id j15mr24855543pfr.175.1556287118706; Fri, 26 Apr 2019 06:58:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556287118; cv=none; d=google.com; s=arc-20160816; b=xI8NbDJ5GKiGBufQL3taIVy7oH2sxTmC7xEeTfimGNOaVoSg2B8HiNIq11IFc+Mazw AOpeClFm6Ng50YLD+tsEJhrLalnZ9tOTJsAWKmk8NyBWzPginoAAtGeIuoCfigYuqzFR K9ZEZFIfsiTxpDCeESAp3A0EGJIhi6xvZwjkAYQJtA5P09Yi1Be/9EAt06pNPKzqCTlR HIMSHhZpMkLRXOxP+pkWC/+X/cpGR4A+j60v+R6ShIIwISoDht6IGbCeLsxwPFulRoMX rHiKFk0RH14kTjFfbzeO8u9S4gaqj539kLeJ0slrjRhZ8AAi8e5LU5oWpmZsnHrQYYco Vn0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject :dkim-signature:dkim-filter; bh=750FAcbGoBl/lXoIviAeZPa9YqfkqcQT/AUUrV/03+U=; b=Fh9RmDaFlgp+dmBpdPo7Ik4+dwIMepLLLA8/XPaSKhv7JYiy4A93EmI3JBAu6feiyI Vh43yy0/y775PA6Mw21emjGx46bEqNxu3WzQA9Ev80klqAc6ouCBtbEYqg+pQy7nrN/P BAGXxfAysH5VGMmK90A6jx2+y01BedRtO/wl0SvBKajlvwePmSv8z+A8YxSC1wk1G9V5 VFi7nge0nvaBo9Xwx5CkrUKsw+WLRvy9l6+p5m+eJMtxZPjPlBOGlr2+O7ZtXU1saFwB uAjbG32B4ykeBM5b/1qL2e10WLyDKfoETAVLoH8uOJQu8Tj6pH4AjH9qxCwl6eJwwlrx MKZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@candelatech.com header.s=default header.b=UqnNoT0Q; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=candelatech.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r11si23585637pgp.337.2019.04.26.06.58.23; Fri, 26 Apr 2019 06:58:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@candelatech.com header.s=default header.b=UqnNoT0Q; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=candelatech.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726157AbfDZN5L (ORCPT + 99 others); Fri, 26 Apr 2019 09:57:11 -0400 Received: from [208.74.158.174] ([208.74.158.174]:55358 "EHLO mail3.candelatech.com" rhost-flags-FAIL-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1726124AbfDZN5L (ORCPT ); Fri, 26 Apr 2019 09:57:11 -0400 Received: from [192.168.100.195] (50-251-239-81-static.hfc.comcastbusiness.net [50.251.239.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail3.candelatech.com (Postfix) with ESMTPSA id A513A13C283; Fri, 26 Apr 2019 06:57:10 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 mail3.candelatech.com A513A13C283 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=candelatech.com; s=default; t=1556287030; bh=cV1FMxDHhw0FNSyCwsRa6AF3HKu9kVz1PflxL468MSI=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=UqnNoT0QVTS6zs3SfM2pffXYU4K4x77mGvCTqPqSpejzEUoC0bAQvj6gRd6n2Z6cq kJxOyLmwl0DZ7q33ly/d/j84y2HPhIsaHnCZ/dcQTwiXccKToPtRcl6S4Rjm116ojn prdwfJlnJ0qWmdXbyvfdxfBUO2Y/dgoKG7/jShww= Subject: Re: [PATCHv2] ath10k: Add wrapper function to ath10k debug To: Venkateswara Naralasetty , Venkateswara Naralasetty , "ath10k@lists.infradead.org" Cc: Kan Yan , "linux-wireless@vger.kernel.org" References: <1556283505-29539-1-git-send-email-vnaralas@codeaurora.org> From: Ben Greear Organization: Candela Technologies Message-ID: <380a88cf-9da4-a772-a119-d8df24d5b450@candelatech.com> Date: Fri, 26 Apr 2019 06:57:10 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 4/26/19 6:38 AM, Venkateswara Naralasetty wrote: >>> #ifdef CONFIG_ATH10K_DEBUG >>> -void ath10k_dbg(struct ath10k *ar, enum ath10k_debug_mask mask, >>> - const char *fmt, ...) >>> +void __ath10k_dbg(struct ath10k *ar, enum ath10k_debug_mask mask, >>> + const char *fmt, ...) >>> { >>> struct va_format vaf; >>> va_list args; >> >> Do you still need the check later in this method: >> >> if (ath10k_debug_mask & mask) >> >> since you already checked in the ath10k_dbg() macro? > Yes, we need this check. > Otherwise all debug messages will be printed even without any debug mask set in case of tracing enabled. Ahh, I see. Thanks, Ben -- Ben Greear Candela Technologies Inc http://www.candelatech.com