[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20200305.213815.971340263047646245.davem@davemloft.net>
Date: Thu, 05 Mar 2020 21:38:15 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: mkubecek@...e.cz
Cc: kuba@...nel.org, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH net-next 0/5] tun: debug messages cleanup
From: Michal Kubecek <mkubecek@...e.cz>
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.
Powered by blists - more mailing lists