]> git.baikalelectronics.ru Git - uboot.git/commit
cmd: pci: Adjust display of digits for 64bit address and size
authorKunihiko Hayashi <hayashi.kunihiko@socionext.com>
Fri, 23 Aug 2019 01:56:55 +0000 (10:56 +0900)
committerTom Rini <trini@konsulko.com>
Mon, 26 Aug 2019 15:46:28 +0000 (11:46 -0400)
commit3ed7bcf855d858794d749dae3e91ed8db43e470a
treef1dc950d927159835f997c8f87781d7162229ca4
parent30685f146d10b65e26d4e6ee75433f58df4cdb21
cmd: pci: Adjust display of digits for 64bit address and size

The command "pci bar" and "pci region" display the address and size in
16 characters including "0x", so the command can only display
14 hexadecimal digits if the number of digits in the address and size is
less than 14.

    ID   Base                Size                Width  Type
    ----------------------------------------------------------
     0   0x00000020000000  0x00000000100000  64     MEM   Prefetchable
     1   0xffff000080000000  0x00000000100000  64     MEM   Prefetchable

The 64-bit address and size should be displayed in 18(= 16+2) digits,
so this patch adjusts them.

Cc: Yehuda Yitschak <yehuday@marvell.com>
Cc: Simon Glass <sjg@chromium.org>
Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
cmd/pci.c