Commit d938ab44 authored by Randy Dunlap's avatar Randy Dunlap Committed by David S. Miller

[NET] netconsole: set .name in struct console

Set .name in netconsole's struct console to identify the
struct's owner.
Signed-off-by: default avatarRandy Dunlap <rdunlap@xenotime.net>
Acked-by: default avatarMatt Mackall <mpm@selenic.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 50fba2aa
...@@ -87,6 +87,7 @@ static void write_msg(struct console *con, const char *msg, unsigned int len) ...@@ -87,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, .flags = CON_ENABLED | CON_PRINTBUFFER,
.write = write_msg .write = write_msg
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment