git: 10e8aac9bbf5 - stable/13 - ath_hal: Stop printing messages during boot
Mark Johnston
markj at FreeBSD.org
Mon Mar 15 15:41:36 UTC 2021
The branch stable/13 has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=10e8aac9bbf5e838d030ac6f7fb24c218d3a41b7
commit 10e8aac9bbf5e838d030ac6f7fb24c218d3a41b7
Author: Mark Johnston <markj at FreeBSD.org>
AuthorDate: 2021-03-08 17:39:06 +0000
Commit: Mark Johnston <markj at 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:
More information about the dev-commits-src-all
mailing list