File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ int setupUSB(libusb_device_handle **frontpanel_device_handle_ptr,
71
71
libusb_device * dev = libusb_get_device (device_handle );
72
72
73
73
if ( (error = libusb_set_configuration (device_handle , PANEL_CONFIG )) ) {
74
- printf ("Couldn't set configuration to %d: got %d " , PANEL_CONFIG , error );
74
+ printf ("Couldn't set configuration to %d: %s " , PANEL_CONFIG , libusb_error_name ( error ) );
75
75
error = 1 ;
76
76
goto fail ;
77
77
}
@@ -86,7 +86,7 @@ int setupUSB(libusb_device_handle **frontpanel_device_handle_ptr,
86
86
}
87
87
const int interface_num = 0 ;
88
88
if ( (error = libusb_claim_interface (device_handle , interface_num )) ) {
89
- printf ("Couldn't claim interface: %d \n" , error );
89
+ printf ("Couldn't claim interface: %s \n" , libusb_error_name ( error ) );
90
90
error = 1 ;
91
91
goto fail ;
92
92
}
You can’t perform that action at this time.
0 commit comments