diff options
author | Stephen Hemminger <shemminger@osdl.org> | 2006-10-26 18:46:52 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-12-03 00:22:34 -0500 |
commit | b41848b61bae30e3661efd4ec62ea380cedef687 (patch) | |
tree | 76d671dd1553be6f8355edbc344306f6d0d2ae72 /drivers/net | |
parent | b6cd27ed33886a5ffaf0925a6d98e13e18e8a1af (diff) |
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 <shemminger@osdl.org>
Diffstat (limited to 'drivers/net')
-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); | |||
102 | 102 | ||
103 | static int init_netconsole(void) | 103 | static int init_netconsole(void) |
104 | { | 104 | { |
105 | int err; | ||
106 | |||
105 | if(strlen(config)) | 107 | if(strlen(config)) |
106 | option_setup(config); | 108 | option_setup(config); |
107 | 109 | ||
@@ -110,8 +112,9 @@ static int init_netconsole(void) | |||
110 | return 0; | 112 | return 0; |
111 | } | 113 | } |
112 | 114 | ||
113 | if(netpoll_setup(&np)) | 115 | err = netpoll_setup(&np); |
114 | return -EINVAL; | 116 | if (err) |
117 | return err; | ||
115 | 118 | ||
116 | register_console(&netconsole); | 119 | register_console(&netconsole); |
117 | printk(KERN_INFO "netconsole: network logging started\n"); | 120 | printk(KERN_INFO "netconsole: network logging started\n"); |