From e49cc2a54e3963b660c7c62224fdb007e4b04496 Mon Sep 17 00:00:00 2001 From: John Schock Date: Fri, 10 Nov 2023 21:35:28 -0800 Subject: [PATCH] Remove a deadlock in RustAdvLoggerDxe --- .../Crates/RustAdvancedLoggerDxe/src/lib.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/AdvLoggerPkg/Crates/RustAdvancedLoggerDxe/src/lib.rs b/AdvLoggerPkg/Crates/RustAdvancedLoggerDxe/src/lib.rs index 6b949d78b3..da3fd420c5 100644 --- a/AdvLoggerPkg/Crates/RustAdvancedLoggerDxe/src/lib.rs +++ b/AdvLoggerPkg/Crates/RustAdvancedLoggerDxe/src/lib.rs @@ -215,13 +215,13 @@ macro_rules! debugln { #[macro_export] macro_rules! function { () => {{ - fn f() {} - fn type_name_of(_: T) -> &'static str { - core::any::type_name::() - } - let name = type_name_of(f); - name.strip_suffix("::f").unwrap() - }} + fn f() {} + fn type_name_of(_: T) -> &'static str { + core::any::type_name::() + } + let name = type_name_of(f); + name.strip_suffix("::f").unwrap() + }}; } #[cfg(test)] @@ -316,4 +316,4 @@ mod tests { debug!(DEBUG_VERBOSE, "This {:} {:} {:} test.\n", "is", "a", "DEBUG_VERBOSE"); debug!(DEBUG_ERROR, "{:}", "This is a DEBUG_ERROR test.\n"); } -} \ No newline at end of file +}