Skip to content

hidraw: only print errors when DEBUG_PRINTF is defined - #25

Closed
z3ntu wants to merge 1 commit into
libusb:masterfrom
z3ntu:pr_351
Closed

hidraw: only print errors when DEBUG_PRINTF is defined#25
z3ntu wants to merge 1 commit into
libusb:masterfrom
z3ntu:pr_351

Conversation

@z3ntu

@z3ntu z3ntu commented Jun 17, 2019

Copy link
Copy Markdown
Collaborator

Without this PR, the hidraw implementation prints messages to stderr, which the application using this library has no control over. This should be optional, just like it is in the libusb backend.

Originally signal11/hidapi#351

@Youw

Youw commented Jun 18, 2019

Copy link
Copy Markdown
Member

There're still printf(s)

@z3ntu

z3ntu commented Jun 18, 2019

Copy link
Copy Markdown
Collaborator Author

This kernel version check is necessary for one workaround for kernels < 2.6.34. As this release is over 9 years old, we can probably remove that workaround now...

And the printf("Can't create udev\n"); calls should be replaceable with #23

@Youw

Youw commented Jun 18, 2019

Copy link
Copy Markdown
Member

Sure, why not - will you update it?

@Qbicz
Qbicz requested review from Qbicz, Youw, jdk and todbot June 24, 2019 21:24
@Youw

Youw commented Jun 24, 2019

Copy link
Copy Markdown
Member

@z3ntu please give your comment

@z3ntu

z3ntu commented Jun 25, 2019

Copy link
Copy Markdown
Collaborator Author

Yeah. Let's keep this PR on ice for now until #23 is ready and then adjust this one for hid_error function

@z3ntu

z3ntu commented Jul 3, 2019

Copy link
Copy Markdown
Collaborator Author

This is obsoleted by #23 now. Closing.

@z3ntu z3ntu closed this Jul 3, 2019
@z3ntu
z3ntu deleted the pr_351 branch July 15, 2019 12:10
@mcuee mcuee added the hidraw Related to Linux/hidraw backend label Jul 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hidraw Related to Linux/hidraw backend

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants