]> git.baikalelectronics.ru Git - kernel.git/commit
net: phylink: Fix phylink_dbg() macro
authorFlorian Fainelli <f.fainelli@gmail.com>
Thu, 31 Oct 2019 22:42:26 +0000 (15:42 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Nov 2019 22:06:46 +0000 (15:06 -0700)
commit800ff0a8985937797f67a52651546c6fe35aab24
tree92437a5cf3c870c7263d9c9b505dd81ba8463a0a
parent9d3471493b472e3e92cd72ff68724333f9dfca13
net: phylink: Fix phylink_dbg() macro

The phylink_dbg() macro does not follow dynamic debug or defined(DEBUG)
and as a result, it spams the kernel log since a PR_DEBUG level is
currently used. Fix it to be defined appropriately whether
CONFIG_DYNAMIC_DEBUG or defined(DEBUG) are set.

Fixes: 1af331169e98 ("net: phylink: Add phylink_{printk, err, warn, info, dbg} macros")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phylink.c