9boot: handle automatic length for 64-bit values in hexfmt() for framebuffer address (thanks Michael Forney)
This commit is contained in:
parent
4bbb3b0b21
commit
48e795005d
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue