mirror of
https://git.FreeBSD.org/src.git
synced 2024-11-26 07:55:01 +00:00
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
This commit is contained in:
parent
936663c887
commit
e9f3a15d63
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=204748
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user