Skip to content

Commit d938ab4

Browse files
rddunlapDavid S. Miller
authored andcommitted
[NET] netconsole: set .name in struct console
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>
1 parent 50fba2a commit d938ab4

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎drivers/net/netconsole.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ static void write_msg(struct console *con, const char *msg, unsigned int len)
8787
}
8888

8989
static struct console netconsole = {
90+
.name = "netcon",
9091
.flags = CON_ENABLED | CON_PRINTBUFFER,
9192
.write = write_msg
9293
};

0 commit comments

Comments
 (0)