summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authormartin <martin@NetBSD.org>2021-12-06 19:33:07 +0000
committermartin <martin@NetBSD.org>2021-12-06 19:33:07 +0000
commitb7c9eb289683076a1508580b58b8f0d5cecb5f88 (patch)
tree3798b7dde3dba3791186d2cc3be1afd88e87efaa /sys/dev
parent5cfccdd31e2c12ab494fcf8bd938a405649903fc (diff)
Pull up following revision(s) (requested by msaitoh in ticket #1387):
sys/dev/i2c/sdtemp.c: revision 1.41 Use aprint_debug instead of aprint_error for expected failure.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/i2c/sdtemp.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/i2c/sdtemp.c b/sys/dev/i2c/sdtemp.c
index ca1d45c3980..cc0a55788dc 100644
--- a/sys/dev/i2c/sdtemp.c
+++ b/sys/dev/i2c/sdtemp.c
@@ -1,4 +1,4 @@
-/* $NetBSD: sdtemp.c,v 1.35.4.1 2020/07/10 10:33:38 martin Exp $ */
+/* $NetBSD: sdtemp.c,v 1.35.4.2 2021/12/06 19:33:07 martin Exp $ */
/*
* Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sdtemp.c,v 1.35.4.1 2020/07/10 10:33:38 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sdtemp.c,v 1.35.4.2 2021/12/06 19:33:07 martin Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -696,8 +696,8 @@ sdtemp_config_mcp(struct sdtemp_softc *sc)
if (rv == 0)
sc->sc_resolution = SDTEMP_CAP_RESOLUTION_MAX;
else
- aprint_error("%s: error %d writing resolution register\n",
- device_xname(sc->sc_dev), rv);
+ aprint_debug_dev(sc->sc_dev,
+ "error %d writing resolution register\n", rv);
}
static void
@@ -716,8 +716,8 @@ sdtemp_config_idt(struct sdtemp_softc *sc)
if (rv == 0)
sc->sc_resolution = SDTEMP_CAP_RESOLUTION_MAX;
else
- aprint_error("%s: error %d writing resolution register\n",
- device_xname(sc->sc_dev), rv);
+ aprint_debug_dev(sc->sc_dev,
+ "error %d writing resolution register\n", rv);
}
MODULE(MODULE_CLASS_DRIVER, sdtemp, "i2cexec,sysmon_envsys");