Skip to content

uefi-services: Change panic handler log message. #526

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

Merged
merged 1 commit into from
Oct 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@

- The `no_panic_handler` feature has been replaced with an additive
`panic_handler` feature. The new feature is enabled by default.
- Changed the panic handler log message to use `println!` instead of
`error!`. This removes an extraneous file name and line number from
the log message.

## uefi - 0.16.1

Expand Down
2 changes: 1 addition & 1 deletion uefi-services/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ unsafe extern "efiapi" fn exit_boot_services(_e: Event, _ctx: Option<NonNull<c_v
#[cfg(feature = "panic_handler")]
#[panic_handler]
fn panic_handler(info: &core::panic::PanicInfo) -> ! {
error!("{}", info);
println!("[PANIC]: {}", info);

// Give the user some time to read the message
if let Some(st) = unsafe { SYSTEM_TABLE.as_ref() } {
Expand Down