Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x86/x86 Don't call aprint_error_dev() with a NULL d...
details: https://anonhg.NetBSD.org/src/rev/56f8d071482f
branches: trunk
changeset: 995358:56f8d071482f
user: gson <gson%NetBSD.org@localhost>
date: Mon Dec 17 15:12:52 2018 +0000
description:
Don't call aprint_error_dev() with a NULL dev. Fixes PR port-amd64/53789.
diffstat:
sys/arch/x86/x86/ipmi.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (28 lines):
diff -r d28234912c58 -r 56f8d071482f sys/arch/x86/x86/ipmi.c
--- a/sys/arch/x86/x86/ipmi.c Mon Dec 17 08:18:06 2018 +0000
+++ b/sys/arch/x86/x86/ipmi.c Mon Dec 17 15:12:52 2018 +0000
@@ -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 @@
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;
Home |
Main Index |
Thread Index |
Old Index