Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Mar 2021 15:41:32 GMT
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 10e8aac9bbf5 - stable/13 - ath_hal: Stop printing messages during boot
Message-ID:  <202103151541.12FFfWc0007472@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=10e8aac9bbf5e838d030ac6f7fb24c218d3a41b7

commit 10e8aac9bbf5e838d030ac6f7fb24c218d3a41b7
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2021-03-08 17:39:06 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2021-03-15 15:39:08 +0000

    ath_hal: Stop printing messages during boot
    
    ath_hal is compiled into the kernel by default and so always prints a
    message to dmesg even when the system has no ath hardware.
    
    Sponsored by:   The FreeBSD Foundation
    
    (cherry picked from commit 0e72eb460228e4b9cb790beb7113d0a5c88db503)
---
 sys/dev/ath/ah_osdep.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/sys/dev/ath/ah_osdep.c b/sys/dev/ath/ah_osdep.c
index 44878486a0c7..a760540b0f3a 100644
--- a/sys/dev/ath/ah_osdep.c
+++ b/sys/dev/ath/ah_osdep.c
@@ -434,11 +434,13 @@ ath_hal_modevent(module_t mod __unused, int type, void *data __unused)
 
 	switch (type) {
 	case MOD_LOAD:
-		printf("[ath_hal] loaded\n");
+		if (bootverbose)
+			printf("[ath_hal] loaded\n");
 		break;
 
 	case MOD_UNLOAD:
-		printf("[ath_hal] unloaded\n");
+		if (bootverbose)
+			printf("[ath_hal] unloaded\n");
 		break;
 
 	case MOD_SHUTDOWN:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202103151541.12FFfWc0007472>