summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorjake <jake@FreeBSD.org>2002-08-04 01:30:26 +0000
committerjake <jake@FreeBSD.org>2002-08-04 01:30:26 +0000
commit2eb842c01d67742d7bfbe3b080315627eaf6425e (patch)
treecf6f20e7245cc8f16639eb6b624b6fcce082401a /sys
parentca2c836450531d844dddbeaf79c7400d8007d5d4 (diff)
downloadFreeBSD-src-2eb842c01d67742d7bfbe3b080315627eaf6425e.zip
FreeBSD-src-2eb842c01d67742d7bfbe3b080315627eaf6425e.tar.gz
Print out the strings in vers.o instead of hardcoding the loader banner.
Diffstat (limited to 'sys')
-rw-r--r--sys/boot/sparc64/loader/main.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/boot/sparc64/loader/main.c b/sys/boot/sparc64/loader/main.c
index 00a54c4..c65426e 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"));
OpenPOWER on IntegriCloud