-
Notifications
You must be signed in to change notification settings - Fork 6.1k
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
net: l2: ethernet: arp: improve debug output #73115
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No objections to adding more prints, but imho these are more like debug messages instead of infos. If all is well and one is not debugging things, there should be no need to print anything. And with debugging one needs to usually enable the debug level which then prints these.
Is If I change it to debug, there is no differentiation between "Here is the ARP request and response" which is 2 prints per IP and "Here is ARP translation for every single packet I ever send", which can immediately consume the entire log buffer. If I won't die on this hill though :) |
Yeah, you can turn off all network logging with |
Ignoring the networking part for now, my opinion is that if a piece of code is doing real work then there should be some level of logging at |
It is interesting to see other people workflow, the way you are using |
I kind of like the idea of introducing more granularity to the networking logs, currently in most cases it just DBG or ERR. And debug logs can really get bloated in some cases. |
Improve the ARP debug output by printing: * Sending ARP query * Queuing packets due to pending ARP query * Receiving ARP query response Signed-off-by: Jordan Yates <jordan@embeint.com>
3e6fc65
to
7bed4f4
Compare
Changed |
Improve the ARP debug output by printing: