[PATCH] ARM: rockchip: dmc: reduce number of leading zeroes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Driver probe currently results in:

  rockchip-dmc memory-controller.of: Detected memory size: 0x0000000080000000

which while correct is a bit hard to read, because of the number
of zeroes. Make it a bit more readable by showing zeroes to the left
only if the size up to 4G. This would turn the above into a more
readable:

  rockchip-dmc memory-controller.of: Detected memory size: 0x80000000

Signed-off-by: Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx>
---
 arch/arm/mach-rockchip/dmc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/mach-rockchip/dmc.c b/arch/arm/mach-rockchip/dmc.c
index 6bc9d9aabc94..81c7e2649e7f 100644
--- a/arch/arm/mach-rockchip/dmc.c
+++ b/arch/arm/mach-rockchip/dmc.c
@@ -206,7 +206,7 @@ static int rockchip_dmc_probe(struct device *dev)
 		memsize += rockchip_sdram_size(sys_rega, sys_regb);
 	}
 
-	dev_info(dev, "Detected memory size: %pa\n", &memsize);
+	dev_info(dev, "Detected memory size: 0x%08llx\n", (u64)memsize);
 
 	/* lowest 10M are shaved off for secure world firmware */
 	membase = 0xa00000;
-- 
2.39.2





[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux