| Index: device/usb/usb_device_handle_impl.cc
|
| diff --git a/device/usb/usb_device_handle_impl.cc b/device/usb/usb_device_handle_impl.cc
|
| index 1b7e5609d7cf011ae1b2375ef05fc962300b718e..c452abbcf95122f801b67e4d17d87effd0390c78 100644
|
| --- a/device/usb/usb_device_handle_impl.cc
|
| +++ b/device/usb/usb_device_handle_impl.cc
|
| @@ -480,8 +480,8 @@ void UsbDeviceHandleImpl::Transfer::ProcessCompletion() {
|
| // setup header to the caller. This logic strips off the header if
|
| // present before invoking the callback provided with the transfer.
|
| if (actual_length > 0) {
|
| - CHECK(length_ >= LIBUSB_CONTROL_SETUP_SIZE)
|
| - << "buffer was not correctly set: too small for the control header";
|
| + // buffer was not correctly set: too small for the control header
|
| + CHECK(length_ >= LIBUSB_CONTROL_SETUP_SIZE);
|
|
|
| if (length_ >= (LIBUSB_CONTROL_SETUP_SIZE + actual_length)) {
|
| // If the payload is zero bytes long, pad out the allocated buffer
|
|
|