[NET] netconsole: set .name in struct console
authorRandy Dunlap <rdunlap@xenotime.net>
Wed, 5 Apr 2006 03:11:56 +0000 (20:11 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Mon, 10 Apr 2006 05:25:25 +0000 (22:25 -0700)
Set .name in netconsole's struct console to identify the
struct's owner.

Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
Acked-by: Matt Mackall <mpm@selenic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/netconsole.c

index 75b35ad760de3cf78fa7b3939a9902c301261731..66e74f7402610f5ac9ad769457f01b5254d1b27e 100644 (file)
@@ -87,6 +87,7 @@ static void write_msg(struct console *con, const char *msg, unsigned int len)
 }
 
 static struct console netconsole = {
+       .name = "netcon",
        .flags = CON_ENABLED | CON_PRINTBUFFER,
        .write = write_msg
 };