Skip to content

macOS kernel driver detach code improvement #960

@mcuee

Description

@mcuee

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions