From nobody Thu Oct 19 05:22:07 2023 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 4S9x0v70k5z4xyvY; Thu, 19 Oct 2023 05:22:07 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4S9x0v6LNsz4WYf; Thu, 19 Oct 2023 05:22:07 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1697692927; 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=/LT3ibNk/zVzzq9MXiJAM0C3QHH8jbo2D+Ib8qeIAtI=; b=lNBZZdkSagyaadA+RssdZiRLu+a1kITYoKjdcXM7SjfXl6ZV5UQpjjX/+oGkxJdCJAGxJQ 4qdGYgF9zkydejMVSo+ZpB29OMI3iZKFmfAOfy0kribH93c5nkxf8ZKMOnDa/ocypN2c+C zVv3neaIUWXHCJBOevO3HtrP3uQs0Iq5Z+netE1kWBEj32ezNMRy+N9nbic5tLBDx0FMKt nJ7k3fLgERb8j3NGlniNC6WYXJGD+riImOocJTHdNS/lUNCQ7KdSqwxytrSRbr2rl7O7Il ierV0zV/ZpmbvzSCbqTOcdXgVn7kCGAWRJy132Ha2OhxaAxOnEDdaDAr79A5Ig== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1697692927; a=rsa-sha256; cv=none; b=vsWL/aGxBDJBOYj7bP440OI94dDRbBdhaCOY0xx5GqJw+2Tebotp3vl5ywtbsjg48rdUKs EG7g2pWX8Sbmab23nnpRocpT/bEJLYWBOTteIhPS3BfdwK24Rj4yGPec3xlDICtztUTt3G kFdz+pa4dZAn1TUUgqYEnb2MLUgj/hT2J69tRkIArwxbiwNZMp7JIkwZGGsBSU2xtNmDB/ DhPpAAmaHyn6JGmMWwbiKfxwW9RhdktQEwhLTSBpRSERY6cjAg9WQCxswpSoS4q3cTWYGY /9Q4deu6I89pW78njvWtGj3SXkRjeBdlv5zKyacTegWW/9s5mMSdPDFcd8RHUA== 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=1697692927; 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=/LT3ibNk/zVzzq9MXiJAM0C3QHH8jbo2D+Ib8qeIAtI=; b=WrXL90gcQOvjeq1BBpf3nbOH1s9WyrKb9UY/uwJmYG3HYVwl15caifkN7VSetIoJ/bmJJb b2Y2iw/aE0NybVWbr9uOfyTAgyI4/4DD4xdHWYaUQ6PrjhfqX0Z0OvUALDchuBXNSPspiR 6bzvylQg8QZQcx30Fuxnm9F7WZaq6me6gaGN4oGaEe7nAuWiR8DQO2FiBoTIlJQfMKdypL YBIvrbhRlnPnh3iv1GyyWMzueEYGtktRo075/skhopmtqDLGZWMNFKlGcg2SspQz6JGOKW MkJBHCIWrc9kdJ1aWQJP+p3V9wCKVryIBoLcdzeEpUbesLoUgwnHlVMlyDbzrA== 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 4S9x0v58BkzcHl; Thu, 19 Oct 2023 05:22:07 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 39J5M7tb073794; Thu, 19 Oct 2023 05:22:07 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 39J5M7uk073791; Thu, 19 Oct 2023 05:22:07 GMT (envelope-from git) Date: Thu, 19 Oct 2023 05:22:07 GMT Message-Id: <202310190522.39J5M7uk073791@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Gleb Smirnoff Subject: git: 28f6910714e3 - main - net/route: properly brace the RT_LOG() macro 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: glebius X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 28f6910714e32138fa2b2950a22aac91c04bd053 Auto-Submitted: auto-generated The branch main has been updated by glebius: URL: https://cgit.FreeBSD.org/src/commit/?id=28f6910714e32138fa2b2950a22aac91c04bd053 commit 28f6910714e32138fa2b2950a22aac91c04bd053 Author: Gleb Smirnoff AuthorDate: 2023-10-19 05:21:53 +0000 Commit: Gleb Smirnoff CommitDate: 2023-10-19 05:21:53 +0000 net/route: properly brace the RT_LOG() macro --- sys/net/route/route_debug.h | 9 +++++---- 1 file 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.