git: e536b197c0cf - main - netlink: Wrap long lines
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 14 Jul 2024 18:30:22 UTC
The branch main has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=e536b197c0cf5c245e0b65f1b73447d53f3656f2
commit e536b197c0cf5c245e0b65f1b73447d53f3656f2
Author: Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2024-07-14 16:20:18 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2024-07-14 18:29:15 +0000
netlink: Wrap long lines
No functional change intended.
MFC after: 1 week
Sponsored by: Klara, Inc.
---
sys/netlink/netlink_debug.h | 20 +++++++++++---------
1 file changed, 11 insertions(+), 9 deletions(-)
diff --git a/sys/netlink/netlink_debug.h b/sys/netlink/netlink_debug.h
index 0d8423d4933a..db987b26b6d7 100644
--- a/sys/netlink/netlink_debug.h
+++ b/sys/netlink/netlink_debug.h
@@ -46,12 +46,16 @@ SYSCTL_DECL(_net_netlink_debug);
* Logging for events specific for particular process
* Example: [nl_domain] PID 4834 fdump_sa: unsupported family: 45
*/
-#define NL_RAW_PID_LOG(_l, _pid, _fmt, ...) NL_RAW_PID_LOG_##_l(_l, _pid, _fmt, ## __VA_ARGS__)
-#define _NL_RAW_PID_LOG(_l, _pid, _fmt, ...) if (_DEBUG_PASS_MSG(_l)) { \
- _output("[" DEBUG_PREFIX_NAME "] PID %u %s: " _fmt "\n", _pid, __func__, ##__VA_ARGS__); \
-}
+#define NL_RAW_PID_LOG(_l, _pid, _fmt, ...) \
+ NL_RAW_PID_LOG_##_l(_l, _pid, _fmt, ## __VA_ARGS__)
+#define _NL_RAW_PID_LOG(_l, _pid, _fmt, ...) \
+ if (_DEBUG_PASS_MSG(_l)) { \
+ _output("[" DEBUG_PREFIX_NAME "] PID %u %s: " _fmt "\n", _pid, \
+ __func__, ##__VA_ARGS__); \
+ }
-#define NLP_LOG(_l, _nlp, _fmt, ...) NL_RAW_PID_LOG_##_l(_l, nlp_get_pid(_nlp), _fmt, ## __VA_ARGS__)
+#define NLP_LOG(_l, _nlp, _fmt, ...) \
+ NL_RAW_PID_LOG_##_l(_l, nlp_get_pid(_nlp), _fmt, ## __VA_ARGS__)
#if DEBUG_MAX_LEVEL>=LOG_DEBUG3
#define NL_RAW_PID_LOG_LOG_DEBUG3 _NL_RAW_PID_LOG
@@ -77,7 +81,5 @@ SYSCTL_DECL(_net_netlink_debug);
#define NL_RAW_PID_LOG_LOG_ERR _NL_RAW_PID_LOG
#define NL_RAW_PID_LOG_LOG_WARNING _NL_RAW_PID_LOG
-
-
-#endif
-#endif
+#endif /* _KERNEL */
+#endif /* !_NETLINK_NETLINK_DEBUG_H_ */