ChangeSet 1.1832.55.38, 2004/09/09 09:49:54-07:00, [EMAIL PROTECTED]

USB: make usb_unlink_urb() message only show up if CONFIG_DEBUG_KERNEL is enabled.

Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]>


 drivers/usb/core/urb.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletion(-)


diff -Nru a/drivers/usb/core/urb.c b/drivers/usb/core/urb.c
--- a/drivers/usb/core/urb.c    2004-10-19 08:17:10 -07:00
+++ b/drivers/usb/core/urb.c    2004-10-19 08:17:10 -07:00
@@ -451,9 +451,11 @@
        if (!urb)
                return -EINVAL;
        if (!(urb->transfer_flags & URB_ASYNC_UNLINK)) {
+#ifdef CONFIG_DEBUG_KERNEL
                printk(KERN_NOTICE "usb_unlink_urb() is deprecated for "
-                       "synchronous unlinks.  Use usb_kill_urb()\n");
+                       "synchronous unlinks.  Use usb_kill_urb() instead.\n");
                WARN_ON(1);
+#endif
                usb_kill_urb(urb);
                return 0;
        }



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to