Always display bootprog_{name,rev}
Paul Goyette <[email protected]>
| Newsgroups | gmane.os.netbsd.current |
|---|---|
| Message-ID | <[email protected]> |
Currently we display bootprog_name and bootprog_rev only as part
of the default banner. If the user configures their own banner
we do not display the name and rev info, which might be useful
for debugging.
So I suggest
Index: bootcfg.c
===================================================================
RCS file: /cvsroot/src/sys/lib/libsa/bootcfg.c,v
retrieving revision 1.10
diff -u -p -r1.10 bootcfg.c
--- bootcfg.c 6 May 2025 18:16:12 -0000 1.10
+++ bootcfg.c 2 Nov 2025 17:22:29 -0000
@@ -283,6 +283,7 @@ print_bootcfg_banner(const char *bootpro
int n = 0;
if (bootcfg_info.banner[0]) {
+ printf("%s Revision %s\n", bootprog_name, bootprog_rev);
for (; n < BOOTCFG_MAXBANNER && bootcfg_info.banner[n]; n++)
printf("%s\n", bootcfg_info.banner[n]);
return;
Any comments? Suggestions? Objections?
+---------------------+--------------------------+----------------------+
| Paul Goyette (.sig) | PGP Key fingerprint: | E-mail addresses: |
| (Retired) | 1B11 1849 721C 56C8 F63A | [email protected] |
| Software Developer | 6E2E 05FD 15CE 9F2D 5102 | [email protected] |
| & Network Engineer | | [email protected] |
+---------------------+--------------------------+----------------------+