-
Notifications
You must be signed in to change notification settings - Fork 111
Use stack-based formatter for debug-printing. #233
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
Conversation
This will enable print!/println! macros to be used in <=DIRQL environments.
|
@microsoft-github-policy-service agree |
Also remove unnecessary mutable reference.
|
It's been a few weeks since this PR is opened. Someone please review this PR. |
|
Ping: It's been a month since I opened this PR. Someone please review this PR. |
Hey @Zero-Tang. Thanks for the PR. I've already gone thru it as a surface level and it LGTM, but we're having some discussions about it internally, as well as going thru some testing with it. I will get this merged in when that has concluded. |
|
Sounds great! |
wmmc88
left a comment
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.
Thanks for the initial PR @Zero-Tang - once this goes in, it'll contribute to being a much better experience for developing Rust Windows Drivers!
We ran into some issues while testing this PR with various corner-cases, and I've made some enhancements to it to accommodate that, along with several extra new features. My colleague @leon-xd will take the last bit of this PR to completion before we make a new release of windows-drivers-rs crates this week
Co-authored-by: Melvin Wang <[email protected]> Signed-off-by: Leon Durrenberger <[email protected]>
|
Discovered a bug in my logic -- conditionally updating All print functions are working as anticipated, tested via UMDF, KMDF, and WDM sample drivers. |
Consider adding a test that would have failed due to this bug so that we don't have the bug again in the future. |
|
I'm glad to see this PR is coming to a close. |
@Zero-Tang thank you for your contribution (and your patience)! |
This will enable
print!andprintln!macros to be used in<=DIRQLlevels.If
alloccrate is used,ExAllocatePool2will fail in>DISPATCH_IRQLlevels.