From nobody Sun Jul 14 18:30:22 2024 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WMYmG4Pg5z5R86f; Sun, 14 Jul 2024 18:30:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WMYmG1Mgsz4Xww; Sun, 14 Jul 2024 18:30:22 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1720981822; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=8GTCXUQfI/qRXwhSjSGa1Tq2Rn2CvnAVfpPAmMKPJHI=; b=NayvLCKbtqT0uoKpcumSRleJsn+C7LG9W0wK47uYf1p77Hw6UYdzVRcade75WBp/pTM6Hu /lAml5U71E6ot8D5kkXCWTbyCHfawJP7vByy37sJMJSUDDNbC2cByuRNiNEwHvx++vdT/z UXYduz3MTy2wKFj09qPHRH58jLt7iN5TaynLUrswmD0NNpMrU1VohMT7p0v72Y3m/zcn2i vhyg2mq1rpku2Jif65YXBf1zAZVkwIlV8yzrGWFZxbXQnfI3EZXhleTz4yKma8p45qDHdD Op5TsgtFzaDkhhCOZzqYCE8cTZ9LDeuJGcDQ3yfh9bs6ILw3+oN5KscIDvRwJQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1720981822; a=rsa-sha256; cv=none; b=rlH+DhnAExbWnNFCVEW3E70oDOPuwplhw/qWw6JDChATG67jhlG7ytIG/rJS0ViTE66SbF e2ONq7cky36KBggHXnrIfCk7NMvz+suNDIuGJQTqJyPvyrfeciMrSIdJebovjKZxett5Ek OyZZMz38Im2ZitgfpMSi+nQ1WTIPrJvOgHla2k2dN1DzhxH53WDvU4V8kszRSVx7WyXZi/ doVyEyS8oX2YaJ9rwtu6+8qmwaPVq8UIBwe0r6W3blvLfv6oCTP/tIYX+BsO1y4kc7EMcQ l9RBxIwKQ6HgE1Yh1iKLOEze0WtbN7fBIooNiIJ3xa4bn5wEIdU6/5xykyv/WQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1720981822; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=8GTCXUQfI/qRXwhSjSGa1Tq2Rn2CvnAVfpPAmMKPJHI=; b=U1mVr7kPUgExro+47zcv/latGtezkMC4b4eLew0KSHuNEe4M80hfJOItBiGvC4dGx/smwD UY5CINuVFaIj+tnw1fsg3Cgl818Kisea7OBuhqHWFdaYXLA5+HvLi8X4XD3cNknY1BhoE/ BzVIQvDMC0qDkshCeHg894AmZEjLXoknlzkqhhCUuu8H8jEiFK4n5WUXCTmdbw03AxgALZ g8eTzPnh/Nvq7TB+FPHGRIegZks6U7aDElFOhjM8ybGHA2xXY1KZ7ZXwWaAEOpmLCbmV19 spC8Bl1ArQo9d2FtFerYGGLxNVKRc/AG4usPFsgOpx1/s3V2OC063PIcLy/64A== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4WMYmG103bzKx9; Sun, 14 Jul 2024 18:30:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 46EIUMeR020582; Sun, 14 Jul 2024 18:30:22 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 46EIUMT8020579; Sun, 14 Jul 2024 18:30:22 GMT (envelope-from git) Date: Sun, 14 Jul 2024 18:30:22 GMT Message-Id: <202407141830.46EIUMT8020579@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: e536b197c0cf - main - netlink: Wrap long lines List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e536b197c0cf5c245e0b65f1b73447d53f3656f2 Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=e536b197c0cf5c245e0b65f1b73447d53f3656f2 commit e536b197c0cf5c245e0b65f1b73447d53f3656f2 Author: Mark Johnston AuthorDate: 2024-07-14 16:20:18 +0000 Commit: Mark Johnston 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_ */