svn commit: r191397 - head/sys/dev/usb
Andrew Thompson
thompsa at FreeBSD.org
Wed Apr 22 17:08:01 UTC 2009
Author: thompsa
Date: Wed Apr 22 17:07:59 2009
New Revision: 191397
URL: http://svn.freebsd.org/changeset/base/191397
Log:
MFp4 //depot/projects/usb at 160614
Fix errornous printout.
Submitted by: Hans Petter Selasky
Modified:
head/sys/dev/usb/usb_device.c
Modified: head/sys/dev/usb/usb_device.c
==============================================================================
--- head/sys/dev/usb/usb_device.c Wed Apr 22 17:07:56 2009 (r191396)
+++ head/sys/dev/usb/usb_device.c Wed Apr 22 17:07:59 2009 (r191397)
@@ -1111,7 +1111,8 @@ usb2_probe_and_attach_sub(struct usb2_de
if (udev->flags.suspended) {
err = DEVICE_SUSPEND(iface->subdev);
- device_printf(iface->subdev, "Suspend failed\n");
+ if (err)
+ device_printf(iface->subdev, "Suspend failed\n");
}
return (0); /* success */
} else {
More information about the svn-src-head
mailing list