9boot: handle automatic length for 64-bit values in hexfmt() for framebuffer address (thanks Michael Forney)

front
cinap_lenrek 2021-02-20 12:55:42 +01:00
parent 4bbb3b0b21
commit 48e795005d
1 changed files with 2 additions and 2 deletions

View File

@ -306,8 +306,8 @@ numfmt(char *s, ulong b, ulong i, ulong a)
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);