NetBSD-Bugs archive

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

bin/54729: dmesg(8) trims leading whitespaces of kernel messages



>Number:         54729
>Category:       bin
>Synopsis:       dmesg(8) trims leading whitespaces of kernel messages
>Confidential:   no
>Severity:       non-critical
>Priority:       high
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Dec 01 16:05:00 +0000 2019
>Originator:     Izumi Tsutsui
>Release:        NetBSD 9.0_RC1
>Organization:
>Environment:
System: NetBSD evbarm 9.0_RC1
Architecture: maybe all
Machine: maybe all
>Description:
9.0_RC1 dmesg(8) seems to incorrectly trim leading whitespaces
of kernel messages.

My HP T5325 (evbarm-earm on serial console) shows messages at boot on console:
---
[   1.0000000] NetBSD/evbarm (hpt5325) booting ...
[   1.0000000] [ Kernel symbol table missing! ]
[   1.0000000] Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
[   1.0000000]     2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017,
[   1.0000000]     2018, 2019 The NetBSD Foundation, Inc.  All rights reserved.
[   1.0000000] Copyright (c) 1982, 1986, 1989, 1991, 1993
[   1.0000000]     The Regents of the University of California.  All rights reserved.

[   1.0000000] NetBSD 9.0_RC1 (HPT5325) #0: Sun Dec  1 23:17:48 JST 2019
[   1.0000000] 	tsutsui@mirage:/s/netbsd-9/src/sys/arch/evbarm/compile/HPT5325
[   1.0000000] total memory = 512 MB
[   1.0000000] avail memory = 496 MB
 :
---

but dmesg(8) shows:
---
[     1.000000] Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
[     1.000000] 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017,
[     1.000000] 2018, 2019 The NetBSD Foundation, Inc.  All rights reserved.
[     1.000000] Copyright (c) 1982, 1986, 1989, 1991, 1993
[     1.000000] The Regents of the University of California.  All rights reserved.

[     1.000000] NetBSD 9.0_RC1 (HPT5325) #0: Sun Dec  1 23:17:48 JST 2019
[     1.000000] 	tsutsui@mirage:/s/netbsd-9/src/sys/arch/evbarm/compile/HPT5325
[     1.000000] total memory = 512 MB
[     1.000000] avail memory = 496 MB
 :
---

and /var/run/dmesg.boot (i.e. dmesg -t) also says:
---
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017,
2018, 2019 The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California.  All rights reserved.

NetBSD 9.0_RC1 (HPT5325) #0: Sun Dec  1 23:17:48 JST 2019
	tsutsui@mirage:/s/netbsd-9/src/sys/arch/evbarm/compile/HPT5325
total memory = 512 MB
avail memory = 496 MB
 :
---

Note /kern/msgbuf shows correctly:
---
[   1.0000000] Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
[   1.0000000]     2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017,
[   1.0000000]     2018, 2019 The NetBSD Foundation, Inc.  All rights reserved.
[   1.0000000] Copyright (c) 1982, 1986, 1989, 1991, 1993
[   1.0000000]     The Regents of the University of California.  All rights reserved.

[   1.0000000] NetBSD 9.0_RC1 (HPT5325) #0: Sun Dec  1 23:17:48 JST 2019
[   1.0000000] 	tsutsui@mirage:/s/netbsd-9/src/sys/arch/evbarm/compile/HPT5325
[   1.0000000] total memory = 512 MB
[   1.0000000] avail memory = 496 MB
 :
---

(By the way, now I wonder how many MD install scripts use /kern/msgbuf
 as dmesg..)

>How-To-Repeat:
Boot NetBSD 9.0_RC1 and check console output and /var/run/dmesg.boot.
No leading whitespaces in copyright years and the UCB name
as mentioned above.

>Fix:
N/A

---
Izumi Tsutsui



Home | Main Index | Thread Index | Old Index