Replace the println! solution in the dbg! macro with a no_std implementation of eprintln! to target different debug message levels.
Early thoughts about what a 'no_std' implementation of eprintln! could be:
- Define and utilize the
[in] Level parameter in the DbgPrintEx function (part of wdm.h) to differentiate println! and eprintln!, mimicking stderr.
- DbgPrintEx function
- Potential levels:
Replace the
println!solution in thedbg!macro with a no_std implementation ofeprintln!to target different debug message levels.Early thoughts about what a 'no_std' implementation of
eprintln!could be:[in] Levelparameter in theDbgPrintExfunction (part of wdm.h) to differentiateprintln!andeprintln!, mimicking stderr.println!-> DPFLTR_INFO_LEVELeprintln!-> DPFLTR_ERROR_LEVEL