# Re: \[PATCH net\] net: phylink: Fix phylink\_dbg() macro

- From: David Miller \<davem@davemloft.net\>
- Date: 2019-11-01 22:08:01 
- List: netdev
- Page: https://ratatoskr.run/netdev/2019/11/5762886
- Thread: https://ratatoskr.run/netdev/2019/10/5762115/t.md

```text
From: Florian Fainelli <f.fainelli@gmail.com>
Date: Thu, 31 Oct 2019 15:42:26 -0700

> 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: 17091180b152 ("net: phylink: Add phylink_{printk, err, warn, info, dbg} macros")
> Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>

Applied and queued up for -stable.
```
