Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Jul 2022 17:00:01 GMT
From:      Colin Percival <cperciva@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 82a21151cf1d - main - Fill in cn_name in struct consdev.
Message-ID:  <202207131700.26DH01NQ068477@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by cperciva:

URL: https://cgit.FreeBSD.org/src/commit/?id=82a21151cf1d7a3e9e95b9edbbf74ac10f386d6a

commit 82a21151cf1d7a3e9e95b9edbbf74ac10f386d6a
Author:     Colin Percival <cperciva@FreeBSD.org>
AuthorDate: 2022-07-13 00:41:06 +0000
Commit:     Colin Percival <cperciva@FreeBSD.org>
CommitDate: 2022-07-13 16:59:00 +0000

    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
---
 sys/sys/cons.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sys/sys/cons.h b/sys/sys/cons.h
index ad73b258df6d..fec7f6c01b84 100644
--- a/sys/sys/cons.h
+++ b/sys/sys/cons.h
@@ -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)
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202207131700.26DH01NQ068477>