diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2016-08-10 13:34:32 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2016-08-10 13:34:32 +0200 |
commit | e1a2b70af962702b37ed387160dfdbe214087fda (patch) | |
tree | d34aee814a5b53e00def83018bec709956bf63cd /src/main.c | |
parent | main: fix typo (diff) | |
download | wireguard-monolithic-historical-e1a2b70af962702b37ed387160dfdbe214087fda.tar.xz wireguard-monolithic-historical-e1a2b70af962702b37ed387160dfdbe214087fda.zip |
main: load driver late in boot process when debugging
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -43,6 +43,12 @@ static void __exit mod_exit(void) pr_debug("WireGuard has been unloaded\n"); } +/* We want our selftest debug messages loaded after serial drivers. */ +#if !defined(MODULE) && defined(DEBUG) +#undef module_init +#define module_init(a) late_initcall(a) +#endif + module_init(mod_init); module_exit(mod_exit); MODULE_LICENSE("GPL v2"); |