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
Add basic debug logging #139
Conversation
// Possible log levels. | ||
enum debug_log_level { | ||
LOGLEVEL_EMERGENCY, | ||
LOGLEVEL_ALERT, |
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.
Should there be accompanying pr_alert()
and pr_critical()
functions?
firmware/common/debug.h
Outdated
enum debug_log_level { | ||
LOGLEVEL_EMERGENCY, | ||
LOGLEVEL_ALERT, | ||
LOGLEVEL_CRITITCAL, |
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.
Should it be LOGLEVEL_CRITICAL
? (spelling)
My review is two minor nitpicks. The rest of it looks great and I'm happy to merge it if you have counter arguments to my nitpicks. |
Review comments looked good; addressed them. Thanks; here's an updated PR. :) |
Apparently you can't merge and then approve, but rest assured, I reviewed and approved of the last commit too. |
This allows a linux-like debug logging mode:
printk
logs to a ringbuffer, which can be queried usinggreatfet dmesg
.