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 Why KASSERT when you can KASSERTMSG?wq



details:   https://anonhg.NetBSD.org/src/rev/d3a0f34ce14a
branches:  nick-nhusb
changeset: 334419:d3a0f34ce14a
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sat Feb 27 17:03:58 2016 +0000

description:
Why KASSERT when you can KASSERTMSG?wq

diffstat:

 sys/dev/usb/ehci.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r b8b2983e405b -r d3a0f34ce14a sys/dev/usb/ehci.c
--- a/sys/dev/usb/ehci.c        Sat Feb 27 16:53:22 2016 +0000
+++ b/sys/dev/usb/ehci.c        Sat Feb 27 17:03:58 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ehci.c,v 1.234.2.89 2016/02/27 16:53:22 skrll Exp $ */
+/*     $NetBSD: ehci.c,v 1.234.2.90 2016/02/27 17:03:58 skrll Exp $ */
 
 /*
  * Copyright (c) 2004-2012 The NetBSD Foundation, Inc.
@@ -53,7 +53,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ehci.c,v 1.234.2.89 2016/02/27 16:53:22 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ehci.c,v 1.234.2.90 2016/02/27 17:03:58 skrll Exp $");
 
 #include "ohci.h"
 #include "uhci.h"
@@ -1059,7 +1059,8 @@
                USBHIST_LOGN(ehcidebug, 5, "--- dump end ---", 0, 0, 0, 0);
        }
 #endif
-       KASSERT(!ex->ex_isdone);
+       KASSERTMSG(!ex->ex_isdone, "xfer %p type %d status %d", xfer,
+           ex->ex_type, xfer->ux_status);
        ex->ex_isdone = true;
 #endif
 



Home | Main Index | Thread Index | Old Index