summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--MdeModulePkg/Universal/DevicePathDxe/DevicePathToText.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/MdeModulePkg/Universal/DevicePathDxe/DevicePathToText.c b/MdeModulePkg/Universal/DevicePathDxe/DevicePathToText.c
index 78c95737a4..777c844578 100644
--- a/MdeModulePkg/Universal/DevicePathDxe/DevicePathToText.c
+++ b/MdeModulePkg/Universal/DevicePathDxe/DevicePathToText.c
@@ -440,11 +440,11 @@ EisaIdToText (
//
//UnicodeSPrint ("%X", 0x0a03) => "0000000000000A03"
//
- UnicodeSPrint (PnpIdStr, 17 * 2, L"%X", EisaId >> 16);
+ UnicodeSPrint (PnpIdStr, 17 * 2, L"%16X", EisaId >> 16);
UnicodeSPrint (
Text,
- 0,
+ sizeof (CHAR16) + sizeof (CHAR16) + sizeof (CHAR16) + sizeof (PnpIdStr),
L"%c%c%c%s",
'@' + ((EisaId >> 10) & 0x1f),
'@' + ((EisaId >> 5) & 0x1f),