From nobody Tue Jan 07 19:35:33 2025 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 4YSLqn4Dqsz5jqM2; Tue, 07 Jan 2025 19:35:33 +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 4YSLqn3bkrz3whT; Tue, 7 Jan 2025 19:35:33 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1736278533; 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=M+BjByu/7NRk4jFvMkqLreFpzBIUOpygAMHFdolUy/4=; b=XQ62BtQNoz9Agew6+K289HT6tvVI7lpzR5iftgLHknzc86bdFBqit88vX2qyqSc49LKOHN xXGFc9sJTkXSEqFiH7q/bnCMdfbLYfp/kuRbCum+aUEXjcixQ2j/ALCc2q2Ag2aHfTZpru eh7TX2kVHz4572QMhvnlB2QYDBIKJFNxy7X1I9r7UOgBKv9DTrhOKaYrtRGrQ2lbYb+nkF GY9Wb7CE97UM1yKn1PC8IxgsZ09fR2H4BujQBSGmqbDQaDfBMzXZxZGBFJ7eZZ63jvR0qK V9dNuah7R28rW9vUVOYM3MoJy9qOMGnBro4T2ZOgo6zZjX9ha6OybaPSdsA07g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1736278533; 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=M+BjByu/7NRk4jFvMkqLreFpzBIUOpygAMHFdolUy/4=; b=Kg5NtoBnSPz+I2SjpIXYQmrS1hJDGQ+jfVU5Cbg+9jypLWMFZHZK0DHFCmfa9HsqcJaaaJ sPBBKzU4SzdW64hgzY/Ur0DieqZohYWWEZizGTHkAPPIS9nT+RNCgqd36jg/pKAzJKzBdh vPU+VAjup79gjRwOjw/4A2EkNg80PFkGK/8V34q7DI5q3GPST+kUiZtEw5tQVXzrQ/WYyp 9NWNG7HA0uGITUhwsZxDH1FPkXdB9xZ04UODKkw0Qo1c0+qcSDtg19G/yZMKs2dU632UZH Fhfs/aoD5gVRGJJtpm1q6/Ivz7Fm89CZGllHLZSCe26w5z5rc8bEy++IOhamxA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1736278533; a=rsa-sha256; cv=none; b=GKTiBZi8ubyD2GnxWNMwlz1BXlkMl9vm0h/9hW/KdMwVGZXZjXVmt3QaaRmZcEx06rLbkg YY/uYCqDlmCtR6+ihwqW5jMNlA7ejUzjDf4yQVlncgDCLhJ5QeOkyO2sGf8l8y5/ZcNugp WKzknAWZqcai+fP1WNdnpdACgWG9G3HbxBRvM95DtXcrZ7VhTD/p/xuPi5s7Dmvhff+5rR XjicfsPDOH8DW7hD1fvAdjNk7fFa9nEVRPA2NuSKrWnF4KZM3a8vFpCs1gUHQnfGRt+Dey wr+/iNIDp2XJ7Smln9soCrIP1MDU087RNiNlri0DL5YBwMzqFxlBnRc2THMIJA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4YSLqn31PQz81w; Tue, 07 Jan 2025 19:35:33 +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 507JZXuS079960; Tue, 7 Jan 2025 19:35:33 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 507JZXpt079957; Tue, 7 Jan 2025 19:35:33 GMT (envelope-from git) Date: Tue, 7 Jan 2025 19:35:33 GMT Message-Id: <202501071935.507JZXpt079957@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: "Bjoern A. Zeeb" Subject: git: a4cdb785bbd7 - main - LinuxKPI: 802.11: improve the IMPROVE_HT() macro 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: bz X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: a4cdb785bbd7e26cc3f2ed0bb4e5cf7ea83c400b Auto-Submitted: auto-generated The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=a4cdb785bbd7e26cc3f2ed0bb4e5cf7ea83c400b commit a4cdb785bbd7e26cc3f2ed0bb4e5cf7ea83c400b Author: Bjoern A. Zeeb AuthorDate: 2024-12-28 10:13:12 +0000 Commit: Bjoern A. Zeeb CommitDate: 2025-01-07 19:34:54 +0000 LinuxKPI: 802.11: improve the IMPROVE_HT() macro Let the macro take a format string and arguments and add __func__, __LINE__ to the output. Sponsored by: The FreeBSD Foundation MFC after: 3 days --- sys/compat/linuxkpi/common/src/linux_80211.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/compat/linuxkpi/common/src/linux_80211.h b/sys/compat/linuxkpi/common/src/linux_80211.h index 8605ec86ad1b..0c4c615d82e5 100644 --- a/sys/compat/linuxkpi/common/src/linux_80211.h +++ b/sys/compat/linuxkpi/common/src/linux_80211.h @@ -78,9 +78,10 @@ if (linuxkpi_debug_80211 & D80211_IMPROVE_TXQ) \ printf("%s:%d: XXX LKPI80211 IMPROVE_TXQ\n", __func__, __LINE__) -#define IMPROVE_HT(...) \ +#define IMPROVE_HT(fmt, ...) \ if (linuxkpi_debug_80211 & D80211_TRACE_MODE_HT) \ - printf("%s:%d: XXX LKPI80211 IMPROVE_HT\n", __func__, __LINE__) + printf("%s:%d: XXX LKPI80211 IMPROVE_HT " fmt "\n", \ + __func__, __LINE__, ##__VA_ARGS__); #define MTAG_ABI_LKPI80211 1707696513 /* LinuxKPI 802.11 KBI */