[PATCH] pci: Fix printf format for regions

Stefan Roese sr at denx.de
Fri Oct 8 17:50:56 CEST 2021


On 08.10.21 17:01, Pali Rohár wrote:
> Correct printf format for unsigned long long is %llx and not %llxx.
> 
> Signed-off-by: Pali Rohár <pali at kernel.org>

Reviewed-by: Stefan Roese <sr at denx.de>

Thanks,
Stefan

> ---
>   drivers/pci/pci_auto_common.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/pci/pci_auto_common.c b/drivers/pci/pci_auto_common.c
> index 5e7f3dbd10b5..b9a4aef1ecf8 100644
> --- a/drivers/pci/pci_auto_common.c
> +++ b/drivers/pci/pci_auto_common.c
> @@ -76,7 +76,7 @@ static void pciauto_show_region(const char *name, struct pci_region *region)
>   {
>   	pciauto_region_init(region);
>   	debug("PCI Autoconfig: Bus %s region: [%llx-%llx],\n"
> -	      "\t\tPhysical Memory [%llx-%llxx]\n", name,
> +	      "\t\tPhysical Memory [%llx-%llx]\n", name,
>   	      (unsigned long long)region->bus_start,
>   	      (unsigned long long)(region->bus_start + region->size - 1),
>   	      (unsigned long long)region->phys_start,
> 


Viele Grüße,
Stefan

-- 
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: sr at denx.de


More information about the U-Boot mailing list