From 7746cd480a57fb78a43ccc139f483ffabe36f847 Mon Sep 17 00:00:00 2001 From: Jake Burkholder Date: Sun, 4 Aug 2002 01:30:26 +0000 Subject: [PATCH] Print out the strings in vers.o instead of hardcoding the loader banner. --- sys/boot/sparc64/loader/main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/boot/sparc64/loader/main.c b/sys/boot/sparc64/loader/main.c index 00a54c4b057d..c65426ead997 100644 --- a/sys/boot/sparc64/loader/main.c +++ b/sys/boot/sparc64/loader/main.c @@ -61,7 +61,7 @@ static int elf_exec(struct preloaded_file *); static int sparc64_autoload(void); static int mmu_mapin(vm_offset_t, vm_size_t); -char __progname[] = "FreeBSD/sparc64 loader"; +extern char bootprog_name[], bootprog_rev[], bootprog_date[], bootprog_maker[]; struct tlb_entry *dtlb_store; struct tlb_entry *itlb_store; @@ -428,7 +428,9 @@ main(int (*openfirm)(void *)) env_setenv("loaddev", EV_VOLATILE, ofw_fmtdev(&bootdev), env_noset, env_nounset); - printf("%s\n", __progname); + printf("\n"); + printf("%s, Revision %s\n", bootprog_name, bootprog_rev); + printf("(%s, %s)\n", bootprog_maker, bootprog_date); printf("bootpath=\"%s\"\n", bootpath); printf("loaddev=%s\n", getenv("loaddev"));