diff options
| author | martin <martin@NetBSD.org> | 2020-04-24 17:25:10 +0000 |
|---|---|---|
| committer | martin <martin@NetBSD.org> | 2020-04-24 17:25:10 +0000 |
| commit | c19a544c0d25392f57c6e4eeedee4e6b68e57430 (patch) | |
| tree | 16283445b7715e703b02fc2492df73b6820e9619 /sys | |
| parent | 14af90083920c0b4202f7e6e135587e95f4e5641 (diff) | |
Pull up following revision(s) (requested by tsutsui in ticket #847):
sys/arch/hp300/hp300/machdep.c: revision 1.233
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 (limited to 'sys')
| -rw-r--r-- | sys/arch/hp300/hp300/machdep.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/arch/hp300/hp300/machdep.c b/sys/arch/hp300/hp300/machdep.c index 337d1663718..e020254a445 100644 --- a/sys/arch/hp300/hp300/machdep.c +++ b/sys/arch/hp300/hp300/machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: machdep.c,v 1.230 2019/03/14 16:59:09 thorpej Exp $ */ +/* $NetBSD: machdep.c,v 1.230.4.1 2020/04/24 17:25:10 martin Exp $ */ /* * Copyright (c) 1988 University of Utah. @@ -39,7 +39,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.230 2019/03/14 16:59:09 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.230.4.1 2020/04/24 17:25:10 martin Exp $"); #include "opt_ddb.h" #include "opt_compat_netbsd.h" @@ -433,6 +433,7 @@ identifycpu(void) /* * ...and the FPU type. */ + fpu[0] = '\0'; switch (fputype) { case FPU_68040: strlcpy(fpu, "+FPU", sizeof(fpu)); @@ -458,6 +459,7 @@ identifycpu(void) /* * ...and finally, the cache type. */ + cache[0] = '\0'; if (cputype == CPU_68040) snprintf(cache, sizeof(cache), ", 4k on-chip physical I/D caches"); |
