mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
Fill in cn_name in struct consdev.
It makes debugging easier if the name is filled in from the start. Reviewed by: imp Sponsored by: https://www.patreon.com/cperciva Differential Revision: https://reviews.freebsd.org/D35795
This commit is contained in:
parent
efe58855f3
commit
82a21151cf
1 changed files with 1 additions and 0 deletions
|
|
@ -104,6 +104,7 @@ extern struct tty *constty; /* Temporary virtual console. */
|
|||
static struct consdev name = { \
|
||||
.cn_ops = &ops, \
|
||||
.cn_arg = (arg), \
|
||||
.cn_name = #name, \
|
||||
}; \
|
||||
DATA_SET(cons_set, name)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue