Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp6467265ybf; Thu, 5 Mar 2020 21:38:54 -0800 (PST) X-Google-Smtp-Source: ADFU+vutoDXC0hoPkVF68s1Wg5QecYZHAJNZpVk95b8x68uhR/aKUpxIUZQIaqoyFbRtCeNLxtbv X-Received: by 2002:a05:6808:1cf:: with SMTP id x15mr1515627oic.44.1583473134023; Thu, 05 Mar 2020 21:38:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583473134; cv=none; d=google.com; s=arc-20160816; b=ZXEGSJYpwhynCSOZLuC5PGAIniqoTWpiFLD9Bqw0iXUEuZW8+MKjl1nhKx0qyLCvaS HN3VRjWskuMBMtN3xxaaxyOTtECelIFuHV2+DTYRJBV7b149CgC49Hu69vwXSsoN3vvS H7cFwjHnNPNL1xLm8QAoEK6X2cpDlXxj1Det12+kzjlw5LkXhZ2SFd7r7gmSZ0XqsiOZ 4XBguv/n0T77EfgB4140QZs1IshV9sth25P4jgvWoDjHDgAjJOQumcKmopTM9Bry0YmE MIHxNcobhVofwb+tLpkv7jpKOjD2kxcLKNzUaiIH58Wwoe8dy9MIICF2bXkbGLJTRxzl 0cwQ== 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:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=QrMxPTgYrK36B5twG8tr3opaJ0eHqsWolbWoCjfA0ZA=; b=zSuIzoAIZbO0kVMgQFJ4hdbUEMHdBOL1db9W2sL/Ife7Mdbv2N0AbjyqaDCeU2gFet ztZqna9X6U13urtHTqceS9020JvvGvsyjMvGIU7IWSoHjuDMZb1IZGPAsAyL55xY2nVn WmCOlCDsokpF/DuHOD2U3nvVBfGK90/MrA5gKBq/CmbzsyVAwigMvGcgA3CJ2GSXd5Vu q+SY19q1JKcA/Mt95rTdcPyFUuKTeh45zbh2wJHEhfHuQShtLsd/QpNhG9njeIHRYmJz UR6+7JXhNhyRiA39g6q9mn3W7zpatqQuU6Hldgb1yF1+RhKtAQEG8PdzODRzdBHEWOGX Dvfg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z16si800041oia.151.2020.03.05.21.38.41; Thu, 05 Mar 2020 21:38:54 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726190AbgCFFiQ (ORCPT + 99 others); Fri, 6 Mar 2020 00:38:16 -0500 Received: from shards.monkeyblade.net ([23.128.96.9]:59710 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725873AbgCFFiQ (ORCPT ); Fri, 6 Mar 2020 00:38:16 -0500 Received: from localhost (unknown [IPv6:2601:601:9f00:477::3d5]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id E07A515ADB685; Thu, 5 Mar 2020 21:38:15 -0800 (PST) Date: Thu, 05 Mar 2020 21:38:15 -0800 (PST) Message-Id: <20200305.213815.971340263047646245.davem@davemloft.net> To: mkubecek@suse.cz Cc: kuba@kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next 0/5] tun: debug messages cleanup From: David Miller In-Reply-To: References: X-Mailer: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Thu, 05 Mar 2020 21:38:16 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Michal Kubecek Date: Wed, 4 Mar 2020 17:23:54 +0100 (CET) > While testing ethtool output for "strange" devices, I noticed confusing and > obviously incorrect message level information for a tun device and sent > a quick fix. The result of the upstream discussion was that tun driver > would rather deserve a more complex cleanup of the way it handles debug > messages. > > The main problem is that all debugging statements and setting of message > level are controlled by TUN_DEBUG macro which is only defined if one edits > the source and rebuilds the module, otherwise all DBG1() and tun_debug() > statements do nothing. > > This series drops the TUN_DEBUG switch and replaces custom tun_debug() > macro with standard netif_info() so that message level (mask) set and > displayed using ethtool works as expected. Some debugging messages are > dropped as they only notify about entering a function which can be done > easily using ftrace or kprobe. > > Patch 1 is a trivial fix for compilation warning with W=1. Series applied, thanks.