Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern put the ucode not found message under #ifdef DEBUG....
details: https://anonhg.NetBSD.org/src/rev/fd5e75711687
branches: trunk
changeset: 846353:fd5e75711687
user: mrg <mrg%NetBSD.org@localhost>
date: Wed Nov 13 01:31:47 2019 +0000
description:
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:
sys/kern/kern_cpu.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (29 lines):
diff -r 17f0394fc36e -r fd5e75711687 sys/kern/kern_cpu.c
--- a/sys/kern/kern_cpu.c Wed Nov 13 00:19:46 2019 +0000
+++ b/sys/kern/kern_cpu.c Wed Nov 13 01:31:47 2019 +0000
@@ -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 @@
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;
}
Home |
Main Index |
Thread Index |
Old Index