summaryrefslogtreecommitdiff
path: root/sys/kern/kern_cpu.c
diff options
context:
space:
mode:
authormrg <mrg@NetBSD.org>2019-11-13 01:31:47 +0000
committermrg <mrg@NetBSD.org>2019-11-13 01:31:47 +0000
commit089b40173b92b72afd76e481eab7d3f2268b3993 (patch)
treec742c6bc3bfc432ea7602cff8f7d3faa38dc0cba /sys/kern/kern_cpu.c
parent646967e5d0e446ac68fb8dff5c2b9984e12f841b (diff)
put the ucode not found message under #ifdef DEBUG. use printf()
instead of aprint_error(). there's an error returned to userland and displayed by cpuctl.
Diffstat (limited to 'sys/kern/kern_cpu.c')
-rw-r--r--sys/kern/kern_cpu.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/kern/kern_cpu.c b/sys/kern/kern_cpu.c
index 72fa8faeefe..4cf83eaddf4 100644
--- a/sys/kern/kern_cpu.c
+++ b/sys/kern/kern_cpu.c
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_cpu.c,v 1.76 2019/10/06 02:04:26 uwe Exp $ */
+/* $NetBSD: kern_cpu.c,v 1.77 2019/11/13 01:31:47 mrg Exp $ */
/*-
* Copyright (c) 2007, 2008, 2009, 2010, 2012 The NetBSD Foundation, Inc.
@@ -56,7 +56,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_cpu.c,v 1.76 2019/10/06 02:04:26 uwe Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_cpu.c,v 1.77 2019/11/13 01:31:47 mrg Exp $");
#include "opt_cpu_ucode.h"
@@ -602,7 +602,9 @@ cpu_ucode_load(struct cpu_ucode_softc *sc, const char *fwname)
error = cpu_ucode_md_open(&fwh, sc->loader_version, fwname);
if (error != 0) {
- aprint_error("ucode: firmware_open failed: %i\n", error);
+#ifdef DEBUG
+ printf("ucode: firmware_open(%s) failed: %i\n", fwname, error);
+#endif
goto err0;
}