Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/hp300/hp300 Fix garbages in dmesg caused by uniniti...



details:   https://anonhg.NetBSD.org/src/rev/241fd6ad67ac
branches:  trunk
changeset: 931056:241fd6ad67ac
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Tue Apr 21 09:02:33 2020 +0000

description:
Fix garbages in dmesg caused by uninitialized variables slipped in r1.228.

Noticed in HP9000/362 dmesg:
 https://dmesgd.nycbug.org/index.cgi?do=view&id=5459

Should be pulled up to netbsd-8 and netbsd-9.

diffstat:

 sys/arch/hp300/hp300/machdep.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r 5237930bc218 -r 241fd6ad67ac sys/arch/hp300/hp300/machdep.c
--- a/sys/arch/hp300/hp300/machdep.c    Tue Apr 21 07:08:12 2020 +0000
+++ b/sys/arch/hp300/hp300/machdep.c    Tue Apr 21 09:02:33 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.232 2019/12/31 13:07:10 ad Exp $ */
+/*     $NetBSD: machdep.c,v 1.233 2020/04/21 09:02:33 tsutsui Exp $    */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -39,7 +39,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.232 2019/12/31 13:07:10 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.233 2020/04/21 09:02:33 tsutsui Exp $");
 
 #include "opt_ddb.h"
 #include "opt_compat_netbsd.h"
@@ -433,6 +433,7 @@
        /*
         * ...and the FPU type.
         */
+       fpu[0] = '\0';
        switch (fputype) {
        case FPU_68040:
                strlcpy(fpu, "+FPU", sizeof(fpu));
@@ -458,6 +459,7 @@
        /*
         * ...and finally, the cache type.
         */
+       cache[0] = '\0';
        if (cputype == CPU_68040)
                snprintf(cache, sizeof(cache),
                    ", 4k on-chip physical I/D caches");



Home | Main Index | Thread Index | Old Index