ref: 9c6bbce715fc45aa65925d29692945672b36757a
parent: 86bb3c77dd2f80dc823437f1cf48d2e654a68e93
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sat Feb 20 07:55:42 EST 2021
9boot: handle automatic length for 64-bit values in hexfmt() for framebuffer address (thanks Michael Forney)
--- a/sys/src/boot/efi/sub.c
+++ b/sys/src/boot/efi/sub.c
@@ -306,8 +306,8 @@
char*
hexfmt(char *s, int i, uvlong a)
{
- if(i > 8){
- s = numfmt(s, 16, i-8, a>>32);
+ if(i > 8 || i == 0 && (a>>32) != 0){
+ s = numfmt(s, 16, i ? i-8 : 0, a>>32);
i = 8;
}
return numfmt(s, 16, i, a);
--
⑨