diff options
| author | Wang Liang <wangliang74@huawei.com> | 2025-07-08 11:33:42 +0800 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2025-07-10 15:27:32 -0700 |
| commit | 96698d1898bc79c783990ac7d5458b7c8f8e0b69 (patch) | |
| tree | 90e85365782e40e7253ec840660e2a34c63f0bbd /include/net/ndisc.h | |
| parent | cd258940b33e03c522aabb6e1fdc6da76632e7b2 (diff) | |
| download | linux-96698d1898bc79c783990ac7d5458b7c8f8e0b69.tar.gz linux-96698d1898bc79c783990ac7d5458b7c8f8e0b69.tar.bz2 linux-96698d1898bc79c783990ac7d5458b7c8f8e0b69.zip | |
net: replace ND_PRINTK with dynamic debug
ND_PRINTK with val > 1 only works when the ND_DEBUG was set in compilation
phase. Replace it with dynamic debug. Convert ND_PRINTK with val <= 1 to
net_{err,warn}_ratelimited, and convert the rest to net_dbg_ratelimited.
Suggested-by: Ido Schimmel <idosch@idosch.org>
Signed-off-by: Wang Liang <wangliang74@huawei.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Link: https://patch.msgid.link/20250708033342.1627636-1-wangliang74@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/net/ndisc.h')
| -rw-r--r-- | include/net/ndisc.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/include/net/ndisc.h b/include/net/ndisc.h index 3c88d5bc5eed..d38783a2ce57 100644 --- a/include/net/ndisc.h +++ b/include/net/ndisc.h @@ -60,15 +60,6 @@ enum { #include <net/neighbour.h> -/* Set to 3 to get tracing... */ -#define ND_DEBUG 1 - -#define ND_PRINTK(val, level, fmt, ...) \ -do { \ - if (val <= ND_DEBUG) \ - net_##level##_ratelimited(fmt, ##__VA_ARGS__); \ -} while (0) - struct ctl_table; struct inet6_dev; struct net_device; |
