mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] omap: gpmc: mark hex debug values as such
@ 2012-11-30 10:11 Jan Luebbe
  2012-12-03  8:42 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Luebbe @ 2012-11-30 10:11 UTC (permalink / raw)
  To: barebox

Also use %p for pointers.

Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
---
 arch/arm/mach-omap/gpmc.c |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/arch/arm/mach-omap/gpmc.c b/arch/arm/mach-omap/gpmc.c
index ff8b58b..73d8c44 100644
--- a/arch/arm/mach-omap/gpmc.c
+++ b/arch/arm/mach-omap/gpmc.c
@@ -50,7 +50,7 @@ void gpmc_generic_init(unsigned int cfg)
 	unsigned int reg = GPMC_REG(CONFIG7_0);
 	char x = 0;
 
-	debug("gpmccfg=%x\n", cfg);
+	debug("gpmccfg=0x%x\n", cfg);
 	/* Generic Configurations */
 	/* reset gpmc */
 	start = get_time_ns();
@@ -73,7 +73,7 @@ void gpmc_generic_init(unsigned int cfg)
 	 * But NEVER run me in XIP mode! I will Die!
 	 */
 	while (x < GPMC_NUM_CS) {
-		debug("gpmccs=%d Reg:%x <-0x0\n", x, reg);
+		debug("gpmccs=%d Reg:0x%x <-0x0\n", x, reg);
 		writel(0x0, reg);
 		reg += GPMC_CONFIG_CS_SIZE;
 		x++;
@@ -95,7 +95,7 @@ void gpmc_cs_config(char cs, struct gpmc_config *config)
 {
 	unsigned int reg = GPMC_REG(CONFIG1_0) + (cs * GPMC_CONFIG_CS_SIZE);
 	unsigned char x = 0;
-	debug("gpmccs=%x cfg=%x\n", cs, (unsigned int)config);
+	debug("gpmccs=0x%x cfg=0x%p\n", cs, config);
 
 	/* Disable the CS before reconfiguring */
 	writel(0x0, GPMC_REG(CONFIG7_0) + (cs * GPMC_CONFIG_CS_SIZE));
@@ -103,14 +103,14 @@ void gpmc_cs_config(char cs, struct gpmc_config *config)
 
 	/* Write the CFG1-6 regs */
 	while (x < 6) {
-		debug("gpmccfg=%d Reg:%x <-0x%x\n",
+		debug("gpmccfg%d Reg:0x%x <-0x%08x\n",
 				x, reg, config->cfg[x]);
 		writel(config->cfg[x], reg);
 		reg += GPMC_CONFIG_REG_OFF;
 		x++;
 	}
 	/* reg now points to CFG7 */
-	debug("gpmccfg=%d Reg:%x <-0x%x\n",
+	debug("gpmccfg%d Reg:0x%x <-0x%08x\n",
 			x, reg, (0x1 << 6) |		/* CS enable */
 		     ((config->size & 0xF) << 8) |	/* Size */
 		     ((config->base >> 24) & 0x3F));
-- 
1.7.10.4


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] omap: gpmc: mark hex debug values as such
  2012-11-30 10:11 [PATCH] omap: gpmc: mark hex debug values as such Jan Luebbe
@ 2012-12-03  8:42 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2012-12-03  8:42 UTC (permalink / raw)
  To: Jan Luebbe; +Cc: barebox

On Fri, Nov 30, 2012 at 11:11:12AM +0100, Jan Luebbe wrote:
> Also use %p for pointers.
> 
> Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
> ---

Applied, thanks

Sascha

>  arch/arm/mach-omap/gpmc.c |   10 +++++-----
>  1 file changed, 5 insertions(+), 5 deletions(-)
> 
> diff --git a/arch/arm/mach-omap/gpmc.c b/arch/arm/mach-omap/gpmc.c
> index ff8b58b..73d8c44 100644
> --- a/arch/arm/mach-omap/gpmc.c
> +++ b/arch/arm/mach-omap/gpmc.c
> @@ -50,7 +50,7 @@ void gpmc_generic_init(unsigned int cfg)
>  	unsigned int reg = GPMC_REG(CONFIG7_0);
>  	char x = 0;
>  
> -	debug("gpmccfg=%x\n", cfg);
> +	debug("gpmccfg=0x%x\n", cfg);
>  	/* Generic Configurations */
>  	/* reset gpmc */
>  	start = get_time_ns();
> @@ -73,7 +73,7 @@ void gpmc_generic_init(unsigned int cfg)
>  	 * But NEVER run me in XIP mode! I will Die!
>  	 */
>  	while (x < GPMC_NUM_CS) {
> -		debug("gpmccs=%d Reg:%x <-0x0\n", x, reg);
> +		debug("gpmccs=%d Reg:0x%x <-0x0\n", x, reg);
>  		writel(0x0, reg);
>  		reg += GPMC_CONFIG_CS_SIZE;
>  		x++;
> @@ -95,7 +95,7 @@ void gpmc_cs_config(char cs, struct gpmc_config *config)
>  {
>  	unsigned int reg = GPMC_REG(CONFIG1_0) + (cs * GPMC_CONFIG_CS_SIZE);
>  	unsigned char x = 0;
> -	debug("gpmccs=%x cfg=%x\n", cs, (unsigned int)config);
> +	debug("gpmccs=0x%x cfg=0x%p\n", cs, config);
>  
>  	/* Disable the CS before reconfiguring */
>  	writel(0x0, GPMC_REG(CONFIG7_0) + (cs * GPMC_CONFIG_CS_SIZE));
> @@ -103,14 +103,14 @@ void gpmc_cs_config(char cs, struct gpmc_config *config)
>  
>  	/* Write the CFG1-6 regs */
>  	while (x < 6) {
> -		debug("gpmccfg=%d Reg:%x <-0x%x\n",
> +		debug("gpmccfg%d Reg:0x%x <-0x%08x\n",
>  				x, reg, config->cfg[x]);
>  		writel(config->cfg[x], reg);
>  		reg += GPMC_CONFIG_REG_OFF;
>  		x++;
>  	}
>  	/* reg now points to CFG7 */
> -	debug("gpmccfg=%d Reg:%x <-0x%x\n",
> +	debug("gpmccfg%d Reg:0x%x <-0x%08x\n",
>  			x, reg, (0x1 << 6) |		/* CS enable */
>  		     ((config->size & 0xF) << 8) |	/* Size */
>  		     ((config->base >> 24) & 0x3F));
> -- 
> 1.7.10.4
> 
> 
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-12-03  8:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-30 10:11 [PATCH] omap: gpmc: mark hex debug values as such Jan Luebbe
2012-12-03  8:42 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox