diff options
| author | Stephen Hemminger <[email protected]> | 2006-10-26 22:46:52 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2006-12-03 05:22:34 +0000 |
| commit | b41848b61bae30e3661efd4ec62ea380cedef687 (patch) | |
| tree | 76d671dd1553be6f8355edbc344306f6d0d2ae72 /drivers/net/netconsole.c | |
| parent | netpoll per device txq (diff) | |
| download | kernel-b41848b61bae30e3661efd4ec62ea380cedef687.tar.gz kernel-b41848b61bae30e3661efd4ec62ea380cedef687.zip | |
netpoll setup error handling
The beast was not always healthy. When it was sick,
it tended to be laconic and not tell anyone the real problem.
A few small changes had it telling the world about its
problems, if they really wanted to hear.
Signed-off-by: Stephen Hemminger <[email protected]>
Diffstat (limited to 'drivers/net/netconsole.c')
| -rw-r--r-- | drivers/net/netconsole.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/net/netconsole.c b/drivers/net/netconsole.c index bf58db29e2ed..e6e8a9797b6d 100644 --- a/drivers/net/netconsole.c +++ b/drivers/net/netconsole.c @@ -102,6 +102,8 @@ __setup("netconsole=", option_setup); static int init_netconsole(void) { + int err; + if(strlen(config)) option_setup(config); @@ -110,8 +112,9 @@ static int init_netconsole(void) return 0; } - if(netpoll_setup(&np)) - return -EINVAL; + err = netpoll_setup(&np); + if (err) + return err; register_console(&netconsole); printk(KERN_INFO "netconsole: network logging started\n"); |
