From 1e8046cad57802f45d5d46992344b31b8d8a68cb Mon Sep 17 00:00:00 2001 From: msaitoh Date: Wed, 1 Dec 2021 21:33:19 +0000 Subject: [PATCH] Use aprint_debug instead of aprint_error for expected failure. --- sys/dev/i2c/sdtemp.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sys/dev/i2c/sdtemp.c b/sys/dev/i2c/sdtemp.c index dc09d44d6325..27155d04ab01 100644 --- a/sys/dev/i2c/sdtemp.c +++ b/sys/dev/i2c/sdtemp.c @@ -1,4 +1,4 @@ -/* $NetBSD: sdtemp.c,v 1.40 2021/06/13 09:47:36 mlelstv Exp $ */ +/* $NetBSD: sdtemp.c,v 1.41 2021/12/01 21:33:19 msaitoh Exp $ */ /* * Copyright (c) 2009 The NetBSD Foundation, Inc. @@ -30,7 +30,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: sdtemp.c,v 1.40 2021/06/13 09:47:36 mlelstv Exp $"); +__KERNEL_RCSID(0, "$NetBSD: sdtemp.c,v 1.41 2021/12/01 21:33:19 msaitoh Exp $"); #include #include @@ -692,8 +692,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 @@ -712,8 +712,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");