From 7922bb06a38e91bec76908744397f1d4203e21c8 Mon Sep 17 00:00:00 2001 From: kxtzownsu Date: Thu, 30 Jan 2025 12:51:13 -0500 Subject: [PATCH] remove fwver from info header (#8) --- include/ui.h | 2 +- src/KVS/main.c | 4 ++-- src/KVS/ui.c | 5 ++--- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/include/ui.h b/include/ui.h index d54d771..e628e46 100644 --- a/include/ui.h +++ b/include/ui.h @@ -2,7 +2,7 @@ #define UI_H void ui_flash(char* flashtype); -void ui_header(const char* fwver, const char* kernver, const char* tpmver, const char* fwmp, const char* gscver, const char* gsctype); +void ui_header(const char* kernver, const char* tpmver, const char* fwmp, const char* gscver, const char* gsctype); void show_credits(); void troll(); void enterToContinue(); diff --git a/src/KVS/main.c b/src/KVS/main.c index 4eaf9a1..3faad0d 100644 --- a/src/KVS/main.c +++ b/src/KVS/main.c @@ -34,7 +34,7 @@ int main(int argc, char **argv) { sleep(86400); } - const char* fwver = getFirmwareVersion(); + // const char* fwver = getFirmwareVersion(); const char* tpmver = getTpmVersion(); const char* fwmp = getFWMPFlags(); const char* gscver = getGSCRWVersion(); @@ -49,7 +49,7 @@ int main(int argc, char **argv) { printf("\033[H\033[J"); // clears the screen - ui_header(fwver, kernver, tpmver, fwmp, gscver, gsctype); + ui_header(kernver, tpmver, fwmp, gscver, gsctype); printf("1) Flash new kernver \n"); printf("2) Run KAUB (Kernver Automatic Update Blocker) \n"); printf("3) Kernver FAQ \n"); diff --git a/src/KVS/ui.c b/src/KVS/ui.c index 3c9bbcb..dce84e7 100644 --- a/src/KVS/ui.c +++ b/src/KVS/ui.c @@ -64,10 +64,9 @@ void ui_flash(char* flashtype) { } } -void ui_header(const char* fwver, char* kernver, const char* tpmver, const char* fwmp, const char* gscver, const char* gsctype){ +void ui_header(char* kernver, const char* tpmver, const char* fwmp, const char* gscver, const char* gsctype){ printf("KVS: Kernel Version Switcher (codename Maglev, bid: 2.0.0)\n"); - printf("FW Version: %s\n", fwver); - printf("Kernel Version: %s\n", kernver); + printf("Kernver: %s\n", kernver); printf("TPM: %s\n", tpmver); printf("FWMP: %s\n", fwmp); printf("GSC RW Version: %s\n", gscver);