]> 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)
commit6309a2a72f50adccafeb5d59c9bbafe322da87bb
tree92437a5cf3c870c7263d9c9b505dd81ba8463a0a
parent2b1119821efd00d6605c4008c2d2a5b7325f77ee
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: be737870d068 ("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