diff options
author | sobomax <sobomax@FreeBSD.org> | 2010-03-05 03:37:42 +0000 |
---|---|---|
committer | sobomax <sobomax@FreeBSD.org> | 2010-03-05 03:37:42 +0000 |
commit | 69169912d6b729264e037d88e078ee6f5136dc07 (patch) | |
tree | 1a31118de49145d55a053454d8ce768c07b17732 /sys/dev/ispfw/ispfw.c | |
parent | 04b3e5e51618f8280c82074f83554c0dd18157d6 (diff) | |
download | FreeBSD-src-69169912d6b729264e037d88e078ee6f5136dc07.zip FreeBSD-src-69169912d6b729264e037d88e078ee6f5136dc07.tar.gz |
Don't spam dmesg with "registered firmware ..." when module is compiled
into kernel, unless there is a verbose boot flag set. There is no real
need to have this information printed.
MFC after: 1 week
Diffstat (limited to 'sys/dev/ispfw/ispfw.c')
-rw-r--r-- | sys/dev/ispfw/ispfw.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/sys/dev/ispfw/ispfw.c b/sys/dev/ispfw/ispfw.c index 9fe8031..b351aee 100644 --- a/sys/dev/ispfw/ispfw.c +++ b/sys/dev/ispfw/ispfw.c @@ -142,6 +142,13 @@ static int isp_2500_multi_loaded; #endif #define ISPFW_VERSION 1 + +#if !defined(KLD_MODULE) +#define ISPFW_KLD 0 +#else +#define ISPFW_KLD 1 +#endif + #define RMACRO(token) do { \ if (token##_loaded) \ break; \ @@ -153,7 +160,9 @@ static int isp_2500_multi_loaded; break; \ } \ token##_loaded++; \ - printf("%s: registered firmware <%s>\n", MODULE_NAME, #token); \ + if (bootverbose || ISPFW_KLD) \ + printf("%s: registered firmware <%s>\n", MODULE_NAME, \ + #token); \ } while (0) #define UMACRO(token) do { \ @@ -165,7 +174,9 @@ static int isp_2500_multi_loaded; break; \ } \ token##_loaded--; \ - printf("%s: unregistered firmware <%s>\n", MODULE_NAME, #token);\ + if (bootverbose || ISPFW_KLD) \ + printf("%s: unregistered firmware <%s>\n", MODULE_NAME, \ + #token); \ } while (0) static void |