summaryrefslogtreecommitdiffstats
path: root/sys/boot/ofw
diff options
context:
space:
mode:
authoremaste <emaste@FreeBSD.org>2017-01-17 01:29:03 +0000
committeremaste <emaste@FreeBSD.org>2017-01-17 01:29:03 +0000
commitb69201eba34572f77331ed6af97315972970ebed (patch)
tree6ce33395e9ad85fff23415120246397780a7cf35 /sys/boot/ofw
parent38075eeb11e9ee267d86ea90a4d3d59090cf9ba5 (diff)
downloadFreeBSD-src-b69201eba34572f77331ed6af97315972970ebed.zip
FreeBSD-src-b69201eba34572f77331ed6af97315972970ebed.tar.gz
MFC r310225: Reduce boot loader version string duplication
Instead of repeating "%s, Revision %s" "(%s %s)" in each loader, just create the full version string in vers.c
Diffstat (limited to 'sys/boot/ofw')
-rw-r--r--sys/boot/ofw/common/main.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/sys/boot/ofw/common/main.c b/sys/boot/ofw/common/main.c
index b15df5f..3c0bbdf 100644
--- a/sys/boot/ofw/common/main.c
+++ b/sys/boot/ofw/common/main.c
@@ -36,10 +36,7 @@ __FBSDID("$FreeBSD$");
struct arch_switch archsw; /* MI/MD interface boundary */
extern char end[];
-extern char bootprog_name[];
-extern char bootprog_rev[];
-extern char bootprog_date[];
-extern char bootprog_maker[];
+extern char bootprog_info[];
u_int32_t acells, scells;
@@ -127,9 +124,7 @@ main(int (*openfirm)(void *))
if (devsw[i]->dv_init != NULL)
(devsw[i]->dv_init)();
- printf("\n");
- printf("%s, Revision %s\n", bootprog_name, bootprog_rev);
- printf("(%s, %s)\n", bootprog_maker, bootprog_date);
+ printf("\n%s", bootprog_info);
printf("Memory: %lldKB\n", memsize() / 1024);
OF_getprop(chosen, "bootpath", bootpath, 64);
OpenPOWER on IntegriCloud