kern/122957: ath_hal is too verbose when booting
Ivan Voras
ivoras at gmail.com
Mon Apr 21 09:40:01 UTC 2008
>Number: 122957
>Category: kern
>Synopsis: ath_hal is too verbose when booting
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Mon Apr 21 09:40:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator: Ivan Voras
>Release: 7.x
>Organization:
>Environment:
FreeBSD 7.0-RELEASE
>Description:
ath_hal kernel module is too verbose when booting. It always prints its banner instead of only when in bootverbose mode.
>How-To-Repeat:
Boot any recent FreeBSD. Observe message:
ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)
Drivers shouldn't display their banners when the hardware they support isn't there.
>Fix:
See patch.
Patch attached with submission follows:
--- ath_old/ah_osdep.c 2008-04-18 11:22:53.000000000 +0200
+++ ath/ah_osdep.c 2008-04-18 11:23:48.000000000 +0200
@@ -411,13 +411,15 @@
switch (type) {
case MOD_LOAD:
- printf("ath_hal: %s (", ath_hal_version);
- sep = "";
- for (i = 0; ath_hal_buildopts[i] != NULL; i++) {
- printf("%s%s", sep, ath_hal_buildopts[i]);
- sep = ", ";
+ if (bootverbose) {
+ printf("ath_hal: %s (", ath_hal_version);
+ sep = "";
+ for (i = 0; ath_hal_buildopts[i] != NULL; i++) {
+ printf("%s%s", sep, ath_hal_buildopts[i]);
+ sep = ", ";
+ }
+ printf(")\n");
}
- printf(")\n");
return 0;
case MOD_UNLOAD:
return 0;
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list