From nobody Thu Dec 30 19:22:42 2021 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 7F4AB191FB03; Thu, 30 Dec 2021 19:22:46 +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 4JPypX6sZVz3C0Q; Thu, 30 Dec 2021 19:22:44 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 8BACF1DF5C; Thu, 30 Dec 2021 19:22:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1BUJMgVh017441; Thu, 30 Dec 2021 19:22:42 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BUJMgnI017440; Thu, 30 Dec 2021 19:22:42 GMT (envelope-from git) Date: Thu, 30 Dec 2021 19:22:42 GMT Message-Id: <202112301922.1BUJMgnI017440@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: "Bjoern A. Zeeb" Subject: git: e56099769d72 - stable/13 - net80211: adjust a printf to toeee80211_note 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: bz X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: e56099769d725828032aa9c6c49a4fd34f0a3e24 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1640892165; 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=9hTejIIrzrSFDO283DIs6+uLPL7b8MnUw/0yvq1O0V0=; b=TWW+DTya2yXSbU8TD7jV0FQgmLuI+cpmgdPrPvauW2ksWyziixIZtxJjdSYrDFgRmxe8tC iddf4Z06Nhj68oBE8uTRzr6PMYW7ulm5eOt/0npJnoDZEUQ0smLPvox1p/C+jZkYxh97ki Ef+mnn8ApkIx7cffsQtbkgU7ybacO6UP8ZlSpsqi8vrMt22uBcM3u7Z0mQDIgcrLwct8oa gcPUBhZU1oQzuHPET7777Uk8rxBxWhyiB+6U0LgHdBUdOVYWiMNv3jQCRmihxK/BvjdWe/ PPhcFQWAzZG1pUdPd3CW1e2MXB8PE8HX/6GubqTbuUbyV5C47in89PJVeSXGzA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1640892165; a=rsa-sha256; cv=none; b=pSTnCGJk7ShDctBDy+esUg2RxYxE8XuCsNDKgjLf9rNRUgidDL1NzgvW5xG2ZREj8jVMFe jVw1ZmC+Pc/KVuQuGusJ7jbI4V41mLE2YPDniPIck+MFOtw/9s8pUqGxZ2XtEecX5WilIR PlG91tAPSQC8VZpEOojwOvNB2bknGU7r+Oo+EZk1j5+Hw7AWiq55uLfA4puTDKpmU7u+x9 9xp/5fHpjaGw0u2iBGaYeIlAX1rdl7dp4j8iSQDmK0jcI56k6apLfGS0hsh3NXxhldTSbm KnYatrP6TcIjJxIVcCrcRDO6yFuU0OKHaV+QbObUfw0gVZXnAtShC/ryZZvK8g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=e56099769d725828032aa9c6c49a4fd34f0a3e24 commit e56099769d725828032aa9c6c49a4fd34f0a3e24 Author: Bjoern A. Zeeb AuthorDate: 2021-12-26 17:26:58 +0000 Commit: Bjoern A. Zeeb CommitDate: 2021-12-30 18:27:02 +0000 net80211: adjust a printf to toeee80211_note Throughout net80211 there are multiple ways to log (debugging) information. Start to clenaup one as I kept hitting it to harmonize the output. The more we get away from printfs into either wrapper functions or macros the more likely we can use holistic systematic tracing in the future. Sponsored by: The FreeBSD Foundation (cherry picked from commit 2e59c9c7f01e9e8878664f59438d1ed6c27d0e2b) --- sys/net80211/ieee80211_output.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/net80211/ieee80211_output.c b/sys/net80211/ieee80211_output.c index 66d659af0866..c6898810a694 100644 --- a/sys/net80211/ieee80211_output.c +++ b/sys/net80211/ieee80211_output.c @@ -1057,7 +1057,7 @@ ieee80211_mgmt_output(struct ieee80211_node *ni, struct mbuf *m, int type, /* avoid printing too many frames */ if ((ieee80211_msg_debug(vap) && doprint(vap, type)) || ieee80211_msg_dumppkts(vap)) { - printf("[%s] send %s on channel %u\n", + ieee80211_note(vap, "[%s] send %s on channel %u\n", ether_sprintf(wh->i_addr1), ieee80211_mgt_subtype_name(type), ieee80211_chan2ieee(ic, ic->ic_curchan));