Skip to content

Commit

Permalink
Fix a debug string format specifier. (#544)
Browse files Browse the repository at this point in the history
## 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
  • Loading branch information
joschock authored and makubacki committed Aug 8, 2024
1 parent 0b3804b commit 64cbc06
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 64cbc06

Please sign in to comment.