Module Name:    src
Committed By:   mrg
Date:           Wed Nov 13 01:31:47 UTC 2019

Modified Files:
        src/sys/kern: kern_cpu.c

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.76 -r1.77 src/sys/kern/kern_cpu.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/kern/kern_cpu.c
diff -u src/sys/kern/kern_cpu.c:1.76 src/sys/kern/kern_cpu.c:1.77
--- src/sys/kern/kern_cpu.c:1.76	Sun Oct  6 02:04:26 2019
+++ src/sys/kern/kern_cpu.c	Wed Nov 13 01:31:47 2019
@@ -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 *s
 
 	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;
 	}
 

Reply via email to