Date: Fri, 5 Mar 2010 03:37:42 +0000 (UTC) From: Maxim Sobolev <sobomax@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r204748 - head/sys/dev/ispfw Message-ID: <201003050337.o253bgnp077102@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: sobomax Date: Fri Mar 5 03:37:42 2010 New Revision: 204748 URL: http://svn.freebsd.org/changeset/base/204748 Log: 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 Modified: head/sys/dev/ispfw/ispfw.c Modified: head/sys/dev/ispfw/ispfw.c ============================================================================== --- head/sys/dev/ispfw/ispfw.c Fri Mar 5 02:52:23 2010 (r204747) +++ head/sys/dev/ispfw/ispfw.c Fri Mar 5 03:37:42 2010 (r204748) @@ -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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201003050337.o253bgnp077102>