git: 0e72eb460228 - main - ath_hal: Stop printing messages during boot
Mark Johnston
markj at FreeBSD.org
Mon Mar 8 17:55:21 UTC 2021
The branch main has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=0e72eb460228e4b9cb790beb7113d0a5c88db503
commit 0e72eb460228e4b9cb790beb7113d0a5c88db503
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-08 17:39:06 +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.
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
---
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-main
mailing list