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 Print 0 or 1 and not bit value



details:   https://anonhg.NetBSD.org/src/rev/8bcdfb91d5e3
branches:  nick-nhusb
changeset: 804441:8bcdfb91d5e3
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sun Nov 01 10:45:42 2015 +0000

description:
Print 0 or 1 and not bit value

diffstat:

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

diffs (41 lines):

diff -r e835bb84074f -r 8bcdfb91d5e3 sys/dev/usb/uhci.c
--- a/sys/dev/usb/uhci.c        Sun Nov 01 10:36:52 2015 +0000
+++ b/sys/dev/usb/uhci.c        Sun Nov 01 10:45:42 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uhci.c,v 1.264.4.44 2015/11/01 10:36:52 skrll Exp $    */
+/*     $NetBSD: uhci.c,v 1.264.4.45 2015/11/01 10:45:42 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.44 2015/11/01 10:36:52 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uhci.c,v 1.264.4.45 2015/11/01 10:45:42 skrll Exp $");
 
 #include "opt_usb.h"
 
@@ -1599,15 +1599,15 @@
                    0, 0);
                DPRINTFN((status == UHCI_TD_STALLED) * 10,
                    "bitstuff=%d crcto   =%d nak     =%d babble  =%d",
-                   status & UHCI_TD_BITSTUFF,
-                   status & UHCI_TD_CRCTO,
-                   status & UHCI_TD_NAK,
-                   status & UHCI_TD_BABBLE);
+                   !!(status & UHCI_TD_BITSTUFF),
+                   !!(status & UHCI_TD_CRCTO),
+                   !!(status & UHCI_TD_NAK),
+                   !!(status & UHCI_TD_BABBLE));
                DPRINTFN((status == UHCI_TD_STALLED) * 10,
                    "dbuffer =%d stalled =%d active  =%d",
-                   status & UHCI_TD_DBUFFER,
-                   status & UHCI_TD_STALLED,
-                   status & UHCI_TD_ACTIVE,
+                   !!(status & UHCI_TD_DBUFFER),
+                   !!(status & UHCI_TD_STALLED),
+                   !!(status & UHCI_TD_ACTIVE),
                    0);
 
                if (status == UHCI_TD_STALLED)



Home | Main Index | Thread Index | Old Index