git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
no success with 2.6.12 either, forget about building with the 4.0rc1 tag for now
[linux-2.6.git]
/
drivers
/
net
/
netconsole.c
diff --git
a/drivers/net/netconsole.c
b/drivers/net/netconsole.c
index
29c98d6
..
bf58db2
100644
(file)
--- a/
drivers/net/netconsole.c
+++ b/
drivers/net/netconsole.c
@@
-60,6
+60,7
@@
static struct netpoll np = {
.local_port = 6665,
.remote_port = 6666,
.remote_mac = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff},
.local_port = 6665,
.remote_port = 6666,
.remote_mac = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff},
+ .drop = netpoll_queue,
};
static int configured = 0;
};
static int configured = 0;
@@
-86,6
+87,7
@@
static void write_msg(struct console *con, const char *msg, unsigned int len)
}
static struct console netconsole = {
}
static struct console netconsole = {
+ .name = "netcon",
.flags = CON_ENABLED | CON_PRINTBUFFER,
.write = write_msg
};
.flags = CON_ENABLED | CON_PRINTBUFFER,
.write = write_msg
};
@@
-93,7
+95,7
@@
static struct console netconsole = {
static int option_setup(char *opt)
{
configured = !netpoll_parse_options(&np, opt);
static int option_setup(char *opt)
{
configured = !netpoll_parse_options(&np, opt);
- return
0
;
+ return
1
;
}
__setup("netconsole=", option_setup);
}
__setup("netconsole=", option_setup);
@@
-105,7
+107,7
@@
static int init_netconsole(void)
if(!configured) {
printk("netconsole: not configured, aborting\n");
if(!configured) {
printk("netconsole: not configured, aborting\n");
- return
-EINVAL
;
+ return
0
;
}
if(netpoll_setup(&np))
}
if(netpoll_setup(&np))