Module Name: src
Committed By: jmcneill
Date: Sat Apr 20 11:28:53 UTC 2019
Modified Files:
src/sys/stand/efiboot: boot.c
Log Message:
ST FirmwareRevision field is in a vendor defined format, so just print the raw
value
To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 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.16 src/sys/stand/efiboot/boot.c:1.17
--- src/sys/stand/efiboot/boot.c:1.16 Wed Apr 10 19:36:04 2019
+++ src/sys/stand/efiboot/boot.c Sat Apr 20 11:28:53 2019
@@ -1,4 +1,4 @@
-/* $NetBSD: boot.c,v 1.16 2019/04/10 19:36:04 skrll Exp $ */
+/* $NetBSD: boot.c,v 1.17 2019/04/20 11:28:53 jmcneill Exp $ */
/*-
* Copyright (c) 2016 Kimihiro Nonaka <[email protected]>
@@ -257,9 +257,8 @@ command_version(char *arg)
ufirmware = NULL;
rv = ucs2_to_utf8(ST->FirmwareVendor, &ufirmware);
if (rv == 0) {
- printf("EFI Firmware: %s (rev %d.%02d)\n", ufirmware,
- ST->FirmwareRevision >> 16,
- ST->FirmwareRevision & 0xffff);
+ printf("EFI Firmware: %s (rev 0x%x)\n", ufirmware,
+ ST->FirmwareRevision);
FreePool(ufirmware);
}