diff mbox

[U-Boot,v2,1/2] arm: print the cache config option in hex instead of decimal

Message ID 1477734550-17989-1-git-send-email-j-keerthy@ti.com
State Accepted
Commit 2b373cb83cae37d2cb1af7f880c1ba739956d9b3
Delegated to: Tom Rini
Headers show

Commit Message

J, KEERTHY Oct. 29, 2016, 9:49 a.m. UTC
Printing the option value in hex makes it more comprehensible.

Signed-off-by: Keerthy <j-keerthy@ti.com>
---
 arch/arm/lib/cache-cp15.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Tom Rini Oct. 29, 2016, 5:41 p.m. UTC | #1
On Sat, Oct 29, 2016 at 03:19:09PM +0530, Keerthy wrote:

> Printing the option value in hex makes it more comprehensible.
> 
> Signed-off-by: Keerthy <j-keerthy@ti.com>

Reviewed-by: Tom Rini <trini@konsulko.com>
Tom Rini Nov. 13, 2016, 8:56 p.m. UTC | #2
On Sat, Oct 29, 2016 at 03:19:09PM +0530, Keerthy wrote:

> Printing the option value in hex makes it more comprehensible.
> 
> Signed-off-by: Keerthy <j-keerthy@ti.com>
> Reviewed-by: Tom Rini <trini@konsulko.com>

Applied to u-boot/master, thanks!
diff mbox

Patch

diff --git a/arch/arm/lib/cache-cp15.c b/arch/arm/lib/cache-cp15.c
index 70e94f0..e9f9fc9 100644
--- a/arch/arm/lib/cache-cp15.c
+++ b/arch/arm/lib/cache-cp15.c
@@ -71,7 +71,7 @@  void mmu_set_region_dcache_behaviour(phys_addr_t start, size_t size,
 
 	end = ALIGN(start + size, MMU_SECTION_SIZE) >> MMU_SECTION_SHIFT;
 	start = start >> MMU_SECTION_SHIFT;
-	debug("%s: start=%pa, size=%zu, option=%d\n", __func__, &start, size,
+	debug("%s: start=%pa, size=%zu, option=0x%x\n", __func__, &start, size,
 	      option);
 	for (upto = start; upto < end; upto++)
 		set_section_dcache(upto, option);