mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
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>
This commit is contained in:
parent
b6cd27ed33
commit
b41848b61b
2 changed files with 18 additions and 9 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue