Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/sys/dev



> Date: Tue, 4 Oct 2022 17:16:35 +0900
> From: Masanobu SAITOH <msaitoh%execsw.org@localhost>
> 
> Before reverting changes, one of my machine which use serial console
> didn't print the Copyright message.
> 
> Revert two revert commit, i.e.
> http://mail-index.netbsd.org/source-changes/2022/10/04/msg141389.html
> http://mail-index.netbsd.org/source-changes/2022/10/04/msg141388.html
> and applied consokfix.patch.
> [...]
> The boot message is not printed and I can see messages after /sbin/init.
> dmesg(1) shows the kernel messages.

Can you please try with consokfix.patch _and_ consprintfix.patch?

consprintfix.patch should restore the kernel messages on the console.
From 0f058a0e89e3f545a9020a2fb79dadd7ad89029a Mon Sep 17 00:00:00 2001
From: Taylor R Campbell <riastradh%NetBSD.org@localhost>
Date: Tue, 4 Oct 2022 05:48:39 +0000
Subject: [PATCH] squash! constty(4): Make MP-safe.

- Fix reversed sense of conditional.
---
 sys/kern/subr_prf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/kern/subr_prf.c b/sys/kern/subr_prf.c
index e87e6efc8501..53fb20c1d393 100644
--- a/sys/kern/subr_prf.c
+++ b/sys/kern/subr_prf.c
@@ -425,7 +425,7 @@ putone(int c, int flags, struct tty *tp)
 	if ((flags & TOLOG) &&
 	    c != '\0' && c != '\r' && c != 0177)
 	    	logputchar(c);
-	if ((flags & TOCONS) && ctp != NULL && c != '\0')
+	if ((flags & TOCONS) && ctp == NULL && c != '\0')
 		(*v_putc)(c);
 
 	pserialize_read_exit(s);


Home | Main Index | Thread Index | Old Index