Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/i2c Print device ID with 8bits again (revert part of...



details:   https://anonhg.NetBSD.org/src/rev/ee05cda58235
branches:  trunk
changeset: 346677:ee05cda58235
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Wed Jul 27 09:11:44 2016 +0000

description:
Print device ID with 8bits again (revert part of rev. 1.27) because
the revision field also printed next.

diffstat:

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

diffs (40 lines):

diff -r 2b246f976a13 -r ee05cda58235 sys/dev/i2c/sdtemp.c
--- a/sys/dev/i2c/sdtemp.c      Wed Jul 27 08:38:25 2016 +0000
+++ b/sys/dev/i2c/sdtemp.c      Wed Jul 27 09:11:44 2016 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: sdtemp.c,v 1.29 2016/07/26 08:13:57 msaitoh Exp $        */
+/*      $NetBSD: sdtemp.c,v 1.30 2016/07/27 09:11:44 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.29 2016/07/26 08:13:57 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sdtemp.c,v 1.30 2016/07/27 09:11:44 msaitoh Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -213,8 +213,8 @@
 
        i = sdtemp_lookup(mfgid, devid);
        if (sdtemp_dev_table[i].sdtemp_mfg_id == 0) {
-               aprint_debug("sdtemp: No match for mfg 0x%04x dev 0x%04x "
-                   "rev 0x%02x at address 0x%02x\n", mfgid, devid,
+               aprint_debug("sdtemp: No match for mfg 0x%04x dev 0x%02x "
+                   "rev 0x%02x at address 0x%02x\n", mfgid, devid >> 8,
                    devid & 0xff, sc.sc_address);
                return 0;
        }
@@ -251,8 +251,8 @@
 
        if (sdtemp_dev_table[i].sdtemp_mfg_id == 0)
                aprint_debug_dev(self,
-                   "mfg 0x%04x dev 0x%04x rev 0x%02x at addr 0x%02x\n",
-                   mfgid, devid, devid & 0xff, ia->ia_addr);
+                   "mfg 0x%04x dev 0x%02x rev 0x%02x at addr 0x%02x\n",
+                   mfgid, devid >> 8, devid & 0xff, ia->ia_addr);
 
        error = sdtemp_read_16(sc, SDTEMP_REG_CAPABILITY, &sc->sc_capability);
        aprint_debug_dev(self, "capability reg = %04x\n", sc->sc_capability);



Home | Main Index | Thread Index | Old Index