public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH 1/1] UefiCpuPkg/PiSmmCpuDxeSmm: fix format string
@ 2023-03-24 13:41 Gerd Hoffmann
  2023-03-24 13:59 ` Ni, Ray
  2023-03-24 14:56 ` Laszlo Ersek
  0 siblings, 2 replies; 6+ messages in thread
From: Gerd Hoffmann @ 2023-03-24 13:41 UTC (permalink / raw)
  To: devel
  Cc: Eric Dong, Gerd Hoffmann, Oliver Steffen, Rahul Kumar, Ray Ni,
	Pawel Polawski, Laszlo Ersek

BufferPages is UINTN, so we need "%Lu" when printing it.

Fixes: 4f441d024bee ("UefiCpuPkg/PiSmmCpuDxeSmm: fix error handling")
Reported-by: Laszlo Ersek <lersek@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.c b/UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.c
index cf69161caa4b..08663b1b1ab4 100644
--- a/UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.c
+++ b/UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.c
@@ -880,7 +880,7 @@ PiCpuSmmEntry (
     BufferPages = EFI_SIZE_TO_PAGES (SIZE_32KB + TileSize * (mMaxNumberOfCpus - 1));
     Buffer      = AllocateAlignedCodePages (BufferPages, SIZE_4KB);
     if (Buffer == NULL) {
-      DEBUG ((DEBUG_ERROR, "Failed to allocate %d pages.\n", BufferPages));
+      DEBUG ((DEBUG_ERROR, "Failed to allocate %Lu pages.\n", BufferPages));
       CpuDeadLoop ();
       return EFI_OUT_OF_RESOURCES;
     }
-- 
2.39.2


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-03-24 15:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-24 13:41 [PATCH 1/1] UefiCpuPkg/PiSmmCpuDxeSmm: fix format string Gerd Hoffmann
2023-03-24 13:59 ` Ni, Ray
2023-03-24 15:27   ` Michael D Kinney
2023-03-24 15:35     ` Michael D Kinney
2023-03-24 14:56 ` Laszlo Ersek
2023-03-24 14:58   ` Laszlo Ersek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox