summaryrefslogtreecommitdiffstats
path: root/MdeModulePkg
diff options
context:
space:
mode:
authorMike Maslenkin <mike.maslenkin@gmail.com>2024-02-16 15:49:27 +0300
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2024-07-04 14:56:42 +0000
commit4f73eef8383f423be0fef1d1e66cd897a5367cd3 (patch)
tree6aa7df94006e3177e42d612edfc255f194bae09c /MdeModulePkg
parent6b9307192bf590b3136e690a07196d4255051fdc (diff)
downloadedk2-4f73eef8383f423be0fef1d1e66cd897a5367cd3.tar.gz
edk2-4f73eef8383f423be0fef1d1e66cd897a5367cd3.tar.bz2
edk2-4f73eef8383f423be0fef1d1e66cd897a5367cd3.zip
MdeModulePkg/NvmExpressDxe: fix format used for Eui64 conversion
Eui64 is a 64 bit value, so the "L" or "l" is required for format specifier, otherwise only lower 32 bit will be converted. Signed-off-by: Mike Maslenkin <mike.maslenkin@gmail.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Diffstat (limited to 'MdeModulePkg')
-rw-r--r--MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpress.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpress.c b/MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpress.c
index dea14f1a44..dfa3653d6a 100644
--- a/MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpress.c
+++ b/MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpress.c
@@ -300,7 +300,7 @@ EnumerateNvmeDevNamespace (
Sn[20] = 0;
CopyMem (Mn, Private->ControllerData->Mn, sizeof (Private->ControllerData->Mn));
Mn[40] = 0;
- UnicodeSPrintAsciiFormat (Device->ModelName, sizeof (Device->ModelName), "%a-%a-%x", Sn, Mn, NamespaceData->Eui64);
+ UnicodeSPrintAsciiFormat (Device->ModelName, sizeof (Device->ModelName), "%a-%a-%lx", Sn, Mn, NamespaceData->Eui64);
AddUnicodeString2 (
"eng",