From nobody Mon Jul 22 00:55:40 2024 X-Original-To: dev-commits-src-all@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 4WS1zh5TRNz5Qwnk; Mon, 22 Jul 2024 00:55:44 +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 4WS1zc58vwz4jF0; Mon, 22 Jul 2024 00:55:40 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1721609740; 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=dKmNzECsxqmrEPedlPS/hPQjJPu82D1WdZ1/F3sYrxU=; b=qWYwG2gDjGJ9wRcjEkMOwq7Q9jeSgggDkKOolPc22njkdGesZnbSRofw7bUyryJF2JFJlH 3FuPIM0ndNxb7HdkDqsgq6ojCx4oa+Zn+1h7P0tn26rl/7J3NSzTJGrt9ecqc/K8ruKmMb x7z8lhG3LnGAVHqdveMIKV9jRLQ74XlNyeaKpFHel92asJMRw6XGKzcxGJ5KQBvAocxrZ5 kSaJ75w/OLLibv5CbTB9VkPByyFQ3+CNjV9I/gIxhyRQyN0vUJIhqXKv+mtXeKMzapCpLu dbaVJKFpl7mGvjoTvjpeJ1ROE7p48hrCvUXUTeyTT3pINXfMS6UqfUosembHzQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1721609740; a=rsa-sha256; cv=none; b=wWN2lk2jh2v+ZxQsozeeNmbcIE7smEmrJmpSLWiuQ50IgRxRpvhvPhODn9XYi7wrPZPSDF rqIrXthKkHkhWk6wZyZHxiNARdCMKNTYV2SNSyoWc1wfIkQmcwt751pAz59Q4ObegQByZA olyE1mTe/6Fi2QyMQ+gJs2GD3J1ElXp21mR+h5DghtxIxH3k7zBKWxOH3XJ2LLsPxSHLWu ibxYCWCVHSoTtda8O+vIyfYpzbu0E9iGVzUNR+avyHd7JaMaYMvSK5u4p2JYOUENVjC4hR 0KHABVpWcVSfNrHS4Pk7iJZpO9E7KYo7GqqivI6ztts+Qfi8uqp2yx9rL0mUcw== 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=1721609740; 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=dKmNzECsxqmrEPedlPS/hPQjJPu82D1WdZ1/F3sYrxU=; b=YTk/nmP8UFtB0b7W0fnbxtJ6WYMakQIDDYb367pt69BlReUSqpQ+tMhaAJiLzOyvnh3PqA +g9NbgrmZofLYjmFBJrVIvbwolLNPxYiaEFxxi6ZcMv3Ub0Kc8RJKlol3vaw7JFtJn0RF6 A99xSWOajZGBBR70KikHQWXLIUD4P04h9k21Zf5sCuOOoblsKe9qhYfzVhtFzDy7FKD+3l xrCeMBb68DTLpG5seB7TzqOqfscW/SFZeqGfI+kEx4yCMBfVC+nKMlGXFBH706SZriQoxp 0c8fx1XUciuebBDgxxPdl1emuQSgsbO/QIxNsEwN/nZZa14xC1Uvl3agBB7kYQ== 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 4WS1zc4CjqzN8g; Mon, 22 Jul 2024 00:55:40 +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 46M0teWa007419; Mon, 22 Jul 2024 00:55:40 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 46M0te0x007416; Mon, 22 Jul 2024 00:55:40 GMT (envelope-from git) Date: Mon, 22 Jul 2024 00:55:40 GMT Message-Id: <202407220055.46M0te0x007416@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mark Johnston Subject: git: 73ee1909bfcf - stable/14 - netlink: Wrap long lines List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@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/stable/14 X-Git-Reftype: branch X-Git-Commit: 73ee1909bfcf7432ef48ef0411c3d0036520417d Auto-Submitted: auto-generated The branch stable/14 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=73ee1909bfcf7432ef48ef0411c3d0036520417d commit 73ee1909bfcf7432ef48ef0411c3d0036520417d Author: Mark Johnston AuthorDate: 2024-07-14 16:20:18 +0000 Commit: Mark Johnston CommitDate: 2024-07-22 00:55:27 +0000 netlink: Wrap long lines No functional change intended. MFC after: 1 week Sponsored by: Klara, Inc. (cherry picked from commit e536b197c0cf5c245e0b65f1b73447d53f3656f2) --- 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_ */