浏览代码

[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>
Randy Dunlap 19 年之前
父节点
当前提交
d938ab44c0
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      drivers/net/netconsole.c

+ 1 - 0
drivers/net/netconsole.c

@@ -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
 };