Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/i2c Use aprint_debug instead of aprint_error for exp...



details:   https://anonhg.NetBSD.org/src/rev/ed824819db68
branches:  trunk
changeset: 1026593:ed824819db68
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Wed Dec 01 21:33:19 2021 +0000

description:
Use aprint_debug instead of aprint_error for expected failure.

diffstat:

 sys/dev/i2c/sdtemp.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (40 lines):

diff -r 1d3007c2a6e5 -r ed824819db68 sys/dev/i2c/sdtemp.c
--- a/sys/dev/i2c/sdtemp.c      Wed Dec 01 14:17:50 2021 +0000
+++ b/sys/dev/i2c/sdtemp.c      Wed Dec 01 21:33:19 2021 +0000
@@ -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 <sys/cdefs.h>
-__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 <sys/param.h>
 #include <sys/systm.h>
@@ -692,8 +692,8 @@
        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 @@
        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");



Home | Main Index | Thread Index | Old Index