mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
gigaset: announce if built with debugging
Mention in the driver load announcement whether the driver was built with debugging messages enabled, to facilitate support. Impact: informational message Signed-off-by: Tilman Schmidt <tilman@imap.cc> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
eb4459ff3a
commit
2038724cc7
1 changed files with 7 additions and 1 deletions
|
@ -22,6 +22,12 @@
|
|||
#define DRIVER_AUTHOR "Hansjoerg Lipp <hjlipp@web.de>, Tilman Schmidt <tilman@imap.cc>, Stefan Eilers"
|
||||
#define DRIVER_DESC "Driver for Gigaset 307x"
|
||||
|
||||
#ifdef CONFIG_GIGASET_DEBUG
|
||||
#define DRIVER_DESC_DEBUG " (debug build)"
|
||||
#else
|
||||
#define DRIVER_DESC_DEBUG ""
|
||||
#endif
|
||||
|
||||
/* Module parameters */
|
||||
int gigaset_debuglevel = DEBUG_DEFAULT;
|
||||
EXPORT_SYMBOL_GPL(gigaset_debuglevel);
|
||||
|
@ -1110,7 +1116,7 @@ static int __init gigaset_init_module(void)
|
|||
if (gigaset_debuglevel == 1)
|
||||
gigaset_debuglevel = DEBUG_DEFAULT;
|
||||
|
||||
pr_info(DRIVER_DESC "\n");
|
||||
pr_info(DRIVER_DESC DRIVER_DESC_DEBUG "\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue