Source-Changes-HG archive

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

[src/nick-nhusb]: src/sys/dev/usb Prefix hex values in debug output with "0x"



details:   https://anonhg.NetBSD.org/src/rev/e835bb84074f
branches:  nick-nhusb
changeset: 804440:e835bb84074f
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sun Nov 01 10:36:52 2015 +0000

description:
Prefix hex values in debug output with "0x"

diffstat:

 sys/dev/usb/uhci.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r c48fa6b83787 -r e835bb84074f sys/dev/usb/uhci.c
--- a/sys/dev/usb/uhci.c        Sun Nov 01 10:18:43 2015 +0000
+++ b/sys/dev/usb/uhci.c        Sun Nov 01 10:36:52 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uhci.c,v 1.264.4.43 2015/11/01 10:18:43 skrll Exp $    */
+/*     $NetBSD: uhci.c,v 1.264.4.44 2015/11/01 10:36:52 skrll Exp $    */
 
 /*
  * Copyright (c) 1998, 2004, 2011, 2012 The NetBSD Foundation, Inc.
@@ -42,7 +42,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uhci.c,v 1.264.4.43 2015/11/01 10:18:43 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uhci.c,v 1.264.4.44 2015/11/01 10:36:52 skrll Exp $");
 
 #include "opt_usb.h"
 
@@ -766,7 +766,7 @@
        usb_syncmem(&p->dma, p->offs, sizeof(p->td),
            BUS_DMASYNC_POSTWRITE | BUS_DMASYNC_POSTREAD);
 
-       DPRINTF("TD(%p) at %08x", p, p->physaddr, 0, 0);
+       DPRINTF("TD(%p) at 0x%08x", p, p->physaddr, 0, 0);
        DPRINTF("   link=0x%08x status=0x%08x "
            "token=0x%08x buffer=0x%08x",
             le32toh(p->td.td_link),
@@ -807,7 +807,7 @@
        usb_syncmem(&sqh->dma, sqh->offs, sizeof(sqh->qh),
            BUS_DMASYNC_POSTWRITE | BUS_DMASYNC_POSTREAD);
 
-       DPRINTF("QH(%p) at %08x: hlink=%08x elink=%08x", sqh,
+       DPRINTF("QH(%p) at 0x%08x: hlink=%08x elink=%08x", sqh,
            (int)sqh->physaddr, le32toh(sqh->qh.qh_hlink),
            le32toh(sqh->qh.qh_elink));
 



Home | Main Index | Thread Index | Old Index