Skip to content

Commit ac6ebaf

Browse files
tomparkindavem330
authored andcommitted
l2tp: remove custom logging macros
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>
1 parent 6b7bdcd commit ac6ebaf

1 file changed

Lines changed: 0 additions & 13 deletions

File tree

‎net/l2tp/l2tp_core.h‎

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -339,19 +339,6 @@ static inline int l2tp_v3_ensure_opt_in_linear(struct l2tp_session *session, str
339339
return 0;
340340
}
341341

342-
#define l2tp_printk(ptr, type, func, fmt, ...) \
343-
do { \
344-
if (((ptr)->debug) & (type)) \
345-
func(fmt, ##__VA_ARGS__); \
346-
} while (0)
347-
348-
#define l2tp_warn(ptr, type, fmt, ...) \
349-
l2tp_printk(ptr, type, pr_warn, fmt, ##__VA_ARGS__)
350-
#define l2tp_info(ptr, type, fmt, ...) \
351-
l2tp_printk(ptr, type, pr_info, fmt, ##__VA_ARGS__)
352-
#define l2tp_dbg(ptr, type, fmt, ...) \
353-
l2tp_printk(ptr, type, pr_debug, fmt, ##__VA_ARGS__)
354-
355342
#define MODULE_ALIAS_L2TP_PWTYPE(type) \
356343
MODULE_ALIAS("net-l2tp-type-" __stringify(type))
357344

0 commit comments

Comments
 (0)