Module Name: src
Committed By: jmcneill
Date: Sat Jun 27 18:52:24 UTC 2020
Modified Files:
src/sys/stand/efiboot: boot.c
Log Message:
command_version: print config file path
To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/sys/stand/efiboot/boot.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/stand/efiboot/boot.c
diff -u src/sys/stand/efiboot/boot.c:1.25 src/sys/stand/efiboot/boot.c:1.26
--- src/sys/stand/efiboot/boot.c:1.25 Sat Jun 27 17:23:08 2020
+++ src/sys/stand/efiboot/boot.c Sat Jun 27 18:52:24 2020
@@ -1,4 +1,4 @@
-/* $NetBSD: boot.c,v 1.25 2020/06/27 17:23:08 jmcneill Exp $ */
+/* $NetBSD: boot.c,v 1.26 2020/06/27 18:52:24 jmcneill Exp $ */
/*-
* Copyright (c) 2016 Kimihiro Nonaka <[email protected]>
@@ -360,6 +360,7 @@ command_resetenv(char *arg)
void
command_version(char *arg)
{
+ char pathbuf[80];
char *ufirmware;
int rv;
@@ -373,6 +374,10 @@ command_version(char *arg)
ST->FirmwareRevision);
FreePool(ufirmware);
}
+ if (efi_bootdp != NULL &&
+ efi_file_path(efi_bootdp, BOOTCFG_FILENAME, pathbuf, sizeof(pathbuf)) == 0) {
+ printf("Config path: %s\n", pathbuf);
+ }
efi_fdt_show();
efi_acpi_show();