Skip to content

Commit 3147688

Browse files
committedSep 11, 2016
gp4prog: convert some printf calls into LogError, where appropriate.
1 parent 866c8df commit 3147688

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

Diff for: ‎src/gp4prog/usb.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ void SendInterruptTransfer(hdevice hdev, const uint8_t* buf, size_t size)
3232
int err = 0;
3333
if(0 != (err = libusb_interrupt_transfer(hdev, EP_OUT, const_cast<uint8_t*>(buf), size, &transferred, 250)))
3434
{
35-
printf("libusb_interrupt_transfer failed (%s)\n", libusb_error_name(err));
35+
LogError("libusb_interrupt_transfer failed (%s)\n", libusb_error_name(err));
3636
exit(-1);
3737
}
3838
}
@@ -43,7 +43,7 @@ void ReceiveInterruptTransfer(hdevice hdev, uint8_t* buf, size_t size)
4343
int err = 0;
4444
if(0 != (err = libusb_interrupt_transfer(hdev, EP_IN, buf, size, &transferred, 250)))
4545
{
46-
printf("libusb_interrupt_transfer failed (%s)\n", libusb_error_name(err));
46+
LogError("libusb_interrupt_transfer failed (%s)\n", libusb_error_name(err));
4747
exit(-1);
4848
}
4949
}
@@ -56,7 +56,7 @@ void USBSetup()
5656
{
5757
if(0 != libusb_init(NULL))
5858
{
59-
printf("libusb_init failed\n");
59+
LogError("libusb_init failed\n");
6060
exit(-1);
6161
}
6262
}

0 commit comments

Comments
 (0)
Please sign in to comment.