From 64cbc066b23861d283c7f0d219a87242807a65ee Mon Sep 17 00:00:00 2001 From: John Schock Date: Wed, 7 Aug 2024 12:27:24 -0700 Subject: [PATCH] Fix a debug string format specifier. (#544) ## Description Fix an issue where the wrong format specifier was used for an ASCII string. - [ ] Impacts functionality? - [ ] Impacts security? - [ ] Breaking change? - [ ] Includes tests? - [ ] Includes documentation? ## How This Was Tested Observed that ID_NOT_FOUND string was properly formatted. ## Integration Instructions N/A --- .../MfciDeviceIdSupportLibSmbios/MfciDeviceIdSupportLibSmbios.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MfciPkg/Library/MfciDeviceIdSupportLibSmbios/MfciDeviceIdSupportLibSmbios.c b/MfciPkg/Library/MfciDeviceIdSupportLibSmbios/MfciDeviceIdSupportLibSmbios.c index cff1ce67b1..ee4e4dfe4b 100644 --- a/MfciPkg/Library/MfciDeviceIdSupportLibSmbios/MfciDeviceIdSupportLibSmbios.c +++ b/MfciPkg/Library/MfciDeviceIdSupportLibSmbios/MfciDeviceIdSupportLibSmbios.c @@ -72,7 +72,7 @@ GetOptionalStringByIndex ( // Meet the end of strings set but Index is non-zero, or // found an empty string, or Index passed in was 0 // - DEBUG ((DEBUG_ERROR, "SMBIOS string not found, returning \"%s\"\n", ID_NOT_FOUND)); + DEBUG ((DEBUG_ERROR, "SMBIOS string not found, returning \"%a\"\n", ID_NOT_FOUND)); StrSize = sizeof (ID_NOT_FOUND); WhichStr = ID_NOT_FOUND; } else {