svn commit: r207078 - head/sys/dev/usb
Andrew Thompson
thompsa at FreeBSD.org
Thu Apr 22 21:41:51 UTC 2010
Author: thompsa
Date: Thu Apr 22 21:41:50 2010
New Revision: 207078
URL: http://svn.freebsd.org/changeset/base/207078
Log:
Use SX_DUPOK rather than making the string unique.
Modified:
head/sys/dev/usb/usb_device.c
Modified: head/sys/dev/usb/usb_device.c
==============================================================================
--- head/sys/dev/usb/usb_device.c Thu Apr 22 21:31:34 2010 (r207077)
+++ head/sys/dev/usb/usb_device.c Thu Apr 22 21:41:50 2010 (r207078)
@@ -1491,10 +1491,10 @@ usb_alloc_device(device_t parent_dev, st
return (NULL);
}
/* initialise our SX-lock */
- sx_init(udev->default_sx, "0123456789ABCDEF - USB device SX lock" + depth);
+ sx_init_flags(udev->default_sx, "USB device SX lock", SX_DUPOK);
/* initialise our SX-lock */
- sx_init(udev->default_sx + 1, "0123456789ABCDEF - USB config SX lock" + depth);
+ sx_init_flags(udev->default_sx + 1, "USB config SX lock", SX_DUPOK);
cv_init(udev->default_cv, "WCTRL");
cv_init(udev->default_cv + 1, "UGONE");
More information about the svn-src-all
mailing list