-
Notifications
You must be signed in to change notification settings - Fork 2k
macOS kernel driver detach code improvement #960
Copy link
Copy link
Closed
Labels
Description
Commit b0fd4d8 is good that it downgrades the warning/error message created by the kernel driver detach codes.
darwin: downgrade error message on failure to open interface to info
This resolves an issue introduced by the implementation of the kernel detach code. This
code used claim_interface to detect if a kernel driver is attached. The issue is that if
a driver is attached or the interface is not available and an error message was printed
out. Since this is not an error the info level is more appropriate.
Also downgrading a number of warnings to clean up the output.
Closes #955
I think we can improve the code -- claim_interface() should not be called if libusb_kernel_driver_active() shows that there is no driver is attached to the interface.
Reactions are currently unavailable