| 505 |
if (rv < 0) |
if (rv < 0) |
| 506 |
{ |
{ |
| 507 |
*length = 0; |
*length = 0; |
| 508 |
DEBUG_CRITICAL4("usb_bulk_read(%s/%s): %s", |
if (usbDevice[reader_index].dev->bus) |
| 509 |
usbDevice[reader_index].dev->bus->dirname, |
{ |
| 510 |
usbDevice[reader_index].dev->filename, strerror(errno)); |
DEBUG_CRITICAL4("usb_bulk_read(%s/%s): %s", |
| 511 |
|
usbDevice[reader_index].dev->bus->dirname, |
| 512 |
|
usbDevice[reader_index].dev->filename, strerror(errno)); |
| 513 |
|
} |
| 514 |
|
else |
| 515 |
|
DEBUG_CRITICAL2("usb_bulk_read(no device): %s", strerror(errno)); |
| 516 |
|
|
| 517 |
return STATUS_UNSUCCESSFUL; |
return STATUS_UNSUCCESSFUL; |
| 518 |
} |
} |
| 519 |
|
|