Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/stand/efiboot ST FirmwareRevision field is in a vendor d...



details:   https://anonhg.NetBSD.org/src/rev/6875e86de116
branches:  trunk
changeset: 450612:6875e86de116
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sat Apr 20 11:28:53 2019 +0000

description:
ST FirmwareRevision field is in a vendor defined format, so just print the raw value

diffstat:

 sys/stand/efiboot/boot.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (21 lines):

diff -r 28aab21b0306 -r 6875e86de116 sys/stand/efiboot/boot.c
--- a/sys/stand/efiboot/boot.c  Sat Apr 20 11:23:16 2019 +0000
+++ b/sys/stand/efiboot/boot.c  Sat Apr 20 11:28:53 2019 +0000
@@ -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 <nonaka%netbsd.org@localhost>
@@ -257,9 +257,8 @@
        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);
        }
 



Home | Main Index | Thread Index | Old Index