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 | bc7adc9e1729b464b1890cce283efb58134cb902 (patch) | |
tree | 5d2f0bb321b3a5da314fcd9d131897315e1564b1 /src/main.c | |
parent | fea51237d2d081d4577ede3d77cf318cc2ed3b46 (diff) |
main: load driver late in boot process when debugging
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
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"); |