-
Notifications
You must be signed in to change notification settings - Fork 116
Added PcdAlwaysPrintAssertMsgToSerialPort #821
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
base: release/202502
Are you sure you want to change the base?
Added PcdAlwaysPrintAssertMsgToSerialPort #821
Conversation
With the PCD enabled, assert lib will print the ASSERT message to serial port in addition of AdvancedLogger Signed-off-by: PaddyDeng <[email protected]>
|
I wouldn't add the PCD and just always print the assert message to serial. If we are hitting assertlib, the system is dead, may as well just always print it. |
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.
This needs clarification as to what you are trying to do and why existing mechanisms are not sufficient. Then we can determine how to handle this.
Another PCD at the DebugLib level in the abstraction stack to bypass calling AdvancedLoggerWrite() which calls AdvancedLoggerHdwPortWrite() which calls SerialPortWrite() (in the non-null instance of AdvancedLoggerHdwPortLib) is strange.
Agreed. This should have handled in the |
|
Thanks @makubacki @kuqin12 and @os-d for your comments. Background: However, we want to always print ASSERT-related messages to the serial console, regardless of the debug mode setting. This ensures that during normal validation or any formal use case, any Since our BIOS is built as a release build, the system does not halt on Alternative approach considered: Please provide your comment and suggestion, thanks a lot. |
The AssertLib.c file in AdvLoggerPkg is not that complex. Can you just create your own instance? Then you can have whatever logic you want in there. |
|
Thanks for the comment, we will implement our own library. @PaddyDengAmi, please close abandon this PR, thanks. |
Description
With the PCD enabled, assert lib will print the ASSERT message to serial port in addition of AdvancedLogger
How This Was Tested
Tested on platform and disable normal debug print via AdvancedLogger, the ASSERT message still shows up in the serial port console.
Integration Instructions
N/A