commit 1b45e040f11146ccfb096ce3ad9bb00e9bf67663
parent 23cba4228f0a1a489116595eb1204c19d2f4f3c4
Author: Matsuda Kenji <info@mtkn.jp>
Date: Sun, 17 Mar 2024 15:26:06 +0900
unify printf calls
Diffstat:
2 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/hello.c b/hello.c
@@ -34,11 +34,8 @@ EfiMain(EFI_HANDLE ImageHandle, EFI_SYSTEM_TABLE *systab)
if (mmap->Type != EfiConventionalMemory) {
continue;
}
- printf("%d\t", mmap->Type);
- printf("%x\t", mmap->VirtualStart);
- printf("%x\t", mmap->PhysicalStart);
- printf("%x\t", mmap->NumberOfPages);
- printf("%x\n", mmap->Attribute);
+ printf("%d\t%x\t%x\t%x\t%x\n", mmap->Type, mmap->VirtualStart,
+ mmap->PhysicalStart, mmap->NumberOfPages, mmap->Attribute);
}
// Echo back user input.
diff --git a/utils.c b/utils.c
@@ -1,4 +1,5 @@
#include <stdarg.h>
+
#include "uefi.h"
#include "utils.h"