]> git.baikalelectronics.ru Git - kernel.git/commitdiff
l2tp: remove custom logging macros
authorTom Parkin <tparkin@katalix.com>
Sat, 22 Aug 2020 14:59:07 +0000 (15:59 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 22 Aug 2020 19:44:37 +0000 (12:44 -0700)
All l2tp's informational and warning logging is now carried out using
standard kernel APIs.

Debugging information is now handled using tracepoints.

Now that no code is using the custom logging macros, remove them from
l2tp_core.h.

Signed-off-by: Tom Parkin <tparkin@katalix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/l2tp/l2tp_core.h

index 835c4645a0ecdb80689539719bb4efce814a6661..7a06ac135a9b48f5dff64811c04b025d24a2b746 100644 (file)
@@ -339,19 +339,6 @@ static inline int l2tp_v3_ensure_opt_in_linear(struct l2tp_session *session, str
        return 0;
 }
 
-#define l2tp_printk(ptr, type, func, fmt, ...)                         \
-do {                                                                   \
-       if (((ptr)->debug) & (type))                                    \
-               func(fmt, ##__VA_ARGS__);                               \
-} while (0)
-
-#define l2tp_warn(ptr, type, fmt, ...)                                 \
-       l2tp_printk(ptr, type, pr_warn, fmt, ##__VA_ARGS__)
-#define l2tp_info(ptr, type, fmt, ...)                                 \
-       l2tp_printk(ptr, type, pr_info, fmt, ##__VA_ARGS__)
-#define l2tp_dbg(ptr, type, fmt, ...)                                  \
-       l2tp_printk(ptr, type, pr_debug, fmt, ##__VA_ARGS__)
-
 #define MODULE_ALIAS_L2TP_PWTYPE(type) \
        MODULE_ALIAS("net-l2tp-type-" __stringify(type))