Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb Note the instance of the driver in register acce...



details:   https://anonhg.NetBSD.org/src/rev/1c343bda7da4
branches:  trunk
changeset: 837540:1c343bda7da4
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Mon Dec 10 00:03:11 2018 +0000

description:
Note the instance of the driver in register access trace debug messages.

diffstat:

 sys/dev/usb/uchcom.c |  10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diffs (38 lines):

diff -r ff68717466d8 -r 1c343bda7da4 sys/dev/usb/uchcom.c
--- a/sys/dev/usb/uchcom.c      Sun Dec 09 23:18:41 2018 +0000
+++ b/sys/dev/usb/uchcom.c      Mon Dec 10 00:03:11 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uchcom.c,v 1.17 2016/12/12 16:47:06 bouyer Exp $       */
+/*     $NetBSD: uchcom.c,v 1.18 2018/12/10 00:03:11 jakllsch Exp $     */
 
 /*
  * Copyright (c) 2007 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uchcom.c,v 1.17 2016/12/12 16:47:06 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uchcom.c,v 1.18 2018/12/10 00:03:11 jakllsch Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_usb.h"
@@ -491,7 +491,8 @@
 write_reg(struct uchcom_softc *sc,
          uint8_t reg1, uint8_t val1, uint8_t reg2, uint8_t val2)
 {
-       DPRINTF(("uchcom: write reg 0x%02X<-0x%02X, 0x%02X<-0x%02X\n",
+       DPRINTF(("%s: write reg 0x%02X<-0x%02X, 0x%02X<-0x%02X\n",
+                device_xname(sc->sc_dev),
                 (unsigned)reg1, (unsigned)val1,
                 (unsigned)reg2, (unsigned)val2));
        return generic_control_out(
@@ -513,7 +514,8 @@
        if (err)
                return err;
 
-       DPRINTF(("uchcom: read reg 0x%02X->0x%02X, 0x%02X->0x%02X\n",
+       DPRINTF(("%s: read reg 0x%02X->0x%02X, 0x%02X->0x%02X\n",
+                device_xname(sc->sc_dev),
                 (unsigned)reg1, (unsigned)buf[0],
                 (unsigned)reg2, (unsigned)buf[1]));
 



Home | Main Index | Thread Index | Old Index