Initialize the cn_name instead of the cn_dev

This commit is contained in:
Poul-Henning Kamp 2003-09-26 10:55:07 +00:00
parent d31593c1a5
commit 2f06c3e7f2

View File

@ -283,7 +283,8 @@ static void
ofw_cons_init(struct consdev *cp)
{
cp->cn_dev = makedev(CDEV_MAJOR, 0);
/* XXX: This is the alias, but that should be good enough */
sprintf(cp->cn_name, "ofwcons");
cp->cn_tp = ofw_tp;
}