diff options
author | Gleb Smirnoff <glebius@FreeBSD.org> | 2023-10-19 05:21:53 +0000 |
---|---|---|
committer | Gleb Smirnoff <glebius@FreeBSD.org> | 2023-10-19 05:21:53 +0000 |
commit | 28f6910714e32138fa2b2950a22aac91c04bd053 (patch) | |
tree | 9e1af8c8b4d73fe85f163f6e45028e9f2a20b17a /sys | |
parent | 2d49ff1e21a74b8f641752b63a59dc3ef9e38ddc (diff) | |
download | src-28f6910714e32138fa2b2950a22aac91c04bd053.tar.gz src-28f6910714e32138fa2b2950a22aac91c04bd053.zip |
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net/route/route_debug.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/net/route/route_debug.h b/sys/net/route/route_debug.h index b00fbf1784e7..1e682bd4561b 100644 --- a/sys/net/route/route_debug.h +++ b/sys/net/route/route_debug.h @@ -107,10 +107,11 @@ SYSCTL_DECL(_net_route_debug); * Example: [nhop_neigh] nhops_update_neigh: L2 prepend update from lle/inet/valid/vtnet0/10.0.0.157 */ #define RT_LOG(_l, _fmt, ...) RT_LOG_##_l(_l, _fmt, ## __VA_ARGS__) -#define _RT_LOG(_l, _fmt, ...) if (_DEBUG_PASS_MSG(_l)) { \ - _output("[" DEBUG_PREFIX_NAME "] %s: " _fmt "\n", __func__, ##__VA_ARGS__); \ -} - +#define _RT_LOG(_l, _fmt, ...) do { \ + if (_DEBUG_PASS_MSG(_l)) \ + _output("[" DEBUG_PREFIX_NAME "] %s: " _fmt "\n", \ + __func__, ##__VA_ARGS__); \ +} while (0) /* * Wrapper logic to avoid compiling high levels of debugging messages for production systems. |