aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--efilinux.h3
-rw-r--r--entry.c4
2 files changed, 5 insertions, 2 deletions
diff --git a/efilinux.h b/efilinux.h
index 306248e..1c63bf1 100644
--- a/efilinux.h
+++ b/efilinux.h
@@ -42,6 +42,9 @@
#ifndef __EFILINUX_H__
#define __EFILINUX_H__
+#define EFILINUX_VERSION_MAJOR 0
+#define EFILINUX_VERSION_MINOR 8
+
extern EFI_SYSTEM_TABLE *sys_table;
extern EFI_BOOT_SERVICES *boot;
extern EFI_RUNTIME_SERVICES *runtime;
diff --git a/entry.c b/entry.c
index d027b4e..4c375c2 100644
--- a/entry.c
+++ b/entry.c
@@ -41,7 +41,7 @@
#define ERROR_STRING_LENGTH 32
-static CHAR16 *banner = L"efilinux loader\n";
+static CHAR16 *banner = L"efilinux loader %d.%d\n";
EFI_SYSTEM_TABLE *sys_table;
EFI_BOOT_SERVICES *boot;
@@ -277,7 +277,7 @@ efi_main(EFI_HANDLE image, EFI_SYSTEM_TABLE *_table)
if (CheckCrc(sys_table->Hdr.HeaderSize, &sys_table->Hdr) != TRUE)
return EFI_LOAD_ERROR;
- Print(banner);
+ Print(banner, EFILINUX_VERSION_MAJOR, EFILINUX_VERSION_MINOR);
err = fs_init();
if (err != EFI_SUCCESS)