Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix lsusb requests #11

Merged
merged 2 commits into from
Jul 3, 2024
Merged

Conversation

ThyMYthOS
Copy link
Contributor

@ThyMYthOS ThyMYthOS commented Jun 11, 2024

lsusb tries to request the debug descriptor (0x0a) but does not fail if it is not available.

See https://github.com/gregkh/usbutils/blob/master/lsusb.c#L2984

lsusb tries to request the debug descriptor (0x0a) but does not fail if it
is not available.
@@ -159,8 +159,7 @@ package body USB.Device is
return Handled;

when others =>
raise Program_Error with "Descriptor not implemented " &
Desc_Type'Img;
Put_Line ("Descriptor not implemented:" & Desc_Type'Img);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't want any call to Put_Line if Verbose is not True.

Copy link
Contributor Author

@ThyMYthOS ThyMYthOS Jun 13, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Put_Line in this file already checks if Verbose is set (see line 44). But maybe the procedure should be renamed to Log_Debug.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Fabien-Chouteau please suggest how to proceed.

@Fabien-Chouteau Fabien-Chouteau merged commit 3fd89f1 into Fabien-Chouteau:main Jul 3, 2024
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants