Module Name:    src
Committed By:   gson
Date:           Mon Dec 17 15:12:52 UTC 2018

Modified Files:
        src/sys/arch/x86/x86: ipmi.c

Log Message:
Don't call aprint_error_dev() with a NULL dev.  Fixes PR port-amd64/53789.


To generate a diff of this commit:
cvs rdiff -u -r1.68 -r1.69 src/sys/arch/x86/x86/ipmi.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/arch/x86/x86/ipmi.c
diff -u src/sys/arch/x86/x86/ipmi.c:1.68 src/sys/arch/x86/x86/ipmi.c:1.69
--- src/sys/arch/x86/x86/ipmi.c:1.68	Sat Dec  1 01:56:30 2018
+++ src/sys/arch/x86/x86/ipmi.c	Mon Dec 17 15:12:52 2018
@@ -1,4 +1,4 @@
-/*	$NetBSD: ipmi.c,v 1.68 2018/12/01 01:56:30 msaitoh Exp $ */
+/*	$NetBSD: ipmi.c,v 1.69 2018/12/17 15:12:52 gson Exp $ */
 
 /*
  * Copyright (c) 2006 Manuel Bouyer.
@@ -52,7 +52,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ipmi.c,v 1.68 2018/12/01 01:56:30 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ipmi.c,v 1.69 2018/12/17 15:12:52 gson Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -1937,8 +1937,7 @@ ipmi_map_regs(struct ipmi_softc *sc, str
 	if (bus_space_map(sc->sc_iot, ia->iaa_if_iobase,
 	    sc->sc_if->nregs * sc->sc_if_iospacing,
 	    0, &sc->sc_ioh)) {
-		aprint_error_dev(sc->sc_dev,
-		    "%s: bus_space_map(..., %x, %x, 0, %p) failed\n",
+		printf("%s: bus_space_map(..., %x, %x, 0, %p) failed\n",
 		    __func__, ia->iaa_if_iobase,
 		    sc->sc_if->nregs * sc->sc_if_iospacing, &sc->sc_ioh);
 		return -1;

Reply via email to