Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb usbnet: Impart blame on whose ifnet is unlocked ...



details:   https://anonhg.NetBSD.org/src/rev/3e387648b3a0
branches:  trunk
changeset: 362509:3e387648b3a0
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Thu Mar 03 05:50:05 2022 +0000

description:
usbnet: Impart blame on whose ifnet is unlocked in uno_init.

diffstat:

 sys/dev/usb/usbnet.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 88fd3a4d5482 -r 3e387648b3a0 sys/dev/usb/usbnet.c
--- a/sys/dev/usb/usbnet.c      Thu Mar 03 05:49:58 2022 +0000
+++ b/sys/dev/usb/usbnet.c      Thu Mar 03 05:50:05 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: usbnet.c,v 1.68 2022/03/03 05:49:58 riastradh Exp $    */
+/*     $NetBSD: usbnet.c,v 1.69 2022/03/03 05:50:05 riastradh Exp $    */
 
 /*
  * Copyright (c) 2019 Matthew R. Green
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: usbnet.c,v 1.68 2022/03/03 05:49:58 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: usbnet.c,v 1.69 2022/03/03 05:50:05 riastradh Exp $");
 
 #include <sys/param.h>
 #include <sys/kernel.h>
@@ -181,7 +181,7 @@
 static int
 uno_init(struct usbnet *un, struct ifnet *ifp)
 {
-       KASSERT(IFNET_LOCKED(ifp));
+       KASSERTMSG(IFNET_LOCKED(ifp), "%s", ifp->if_xname);
        return (*un->un_ops->uno_init)(ifp);
 }
 



Home | Main Index | Thread Index | Old Index