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

Log outbound xfer bytes while in debug #2421

Merged
merged 2 commits into from
Apr 4, 2024

Conversation

antoniovazquezblanco
Copy link
Contributor

Describe the PR
This simple PR logs outbound xfer bytes when log level is set to debug. It is useful to be able to dissect the full conversation and not only incoming packets.
While this may be too verbose, it is quite useful when things go south.

Additional context
This is really nice in combination with a simple USB dissector. I am currently using scapy to parse the logs. I may create a PR to scapy with the relevant USB layers and may post an example on how to use them in a future PR.

@hathach
Copy link
Owner

hathach commented Jan 23, 2024

It is helpful but too verbose, it could introduce other timing issues. Especially with bulk transfer like msc class. We should increase the log level to at least 3 for this info.

@antoniovazquezblanco
Copy link
Contributor Author

Done! :D

Copy link
Owner

@hathach hathach left a comment

Choose a reason for hiding this comment

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

checkout review for request changes

@antoniovazquezblanco
Copy link
Contributor Author

Made the requested changes. Also improved a bit on the previous solution.

Thank you for being so patient with this minuscule PR. it is helping me learn more about the project!

Copy link
Owner

@hathach hathach left a comment

Choose a reason for hiding this comment

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

look good, thank you. I update it a bit to use dir variable, will merge when ci passed

@hathach hathach merged commit 5738757 into hathach:master Apr 4, 2024
49 checks passed
@antoniovazquezblanco antoniovazquezblanco deleted the debug branch April 4, 2024 20:39
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