[PATCH] mpc5121/clocks: make debug output more readable

Geert Uytterhoeven Geert.Uytterhoeven at sonycom.com
Sat May 9 00:17:21 EST 2009


On Fri, 8 May 2009, Wolfram Sang wrote:
> - Drop KERN_ levels for printks which print to the same line

Those should use KERN_CONT nowadays.

> - use '=' in output to connect key/value pairs
> 
> Signed-off-by: Wolfram Sang <w.sang at pengutronix.de>
> Cc: John Rigby <jcrigby at gmail.com>
> Cc: Grant Likely <grant.likely at secretlab.ca>
> 
> ---
>  arch/powerpc/platforms/512x/clock.c |    7 +++----
>  1 file changed, 3 insertions(+), 4 deletions(-)
> 
> Index: .kernel/arch/powerpc/platforms/512x/clock.c
> ===================================================================
> --- .kernel.orig/arch/powerpc/platforms/512x/clock.c
> +++ .kernel/arch/powerpc/platforms/512x/clock.c
> @@ -83,12 +83,11 @@ static void dump_clocks(void)
>  	mutex_lock(&clocks_mutex);
>  	printk(KERN_INFO "CLOCKS:\n");
>  	list_for_each_entry(p, &clocks, node) {
> -		printk(KERN_INFO "  %s %ld", p->name, p->rate);
> +		printk(KERN_INFO "  %s=%ld", p->name, p->rate);
>  		if (p->parent)
> -			printk(KERN_INFO " %s %ld", p->parent->name,
> -			       p->parent->rate);
> +			printk(" %s=%ld", p->parent->name, p->parent->rate);
>  		if (p->flags & CLK_HAS_CTRL)
> -			printk(KERN_INFO " reg/bit %d/%d", p->reg, p->bit);
> +			printk(" reg/bit=%d/%d", p->reg, p->bit);
                               ^
			       KERN_CONT

>  		printk("\n");
>  	}
>  	mutex_unlock(&clocks_mutex);

With kind regards,

Geert Uytterhoeven
Software Architect
Techsoft Centre

Technology and Software Centre Europe
The Corporate Village · Da Vincilaan 7-D1 · B-1935 Zaventem · Belgium

Phone:    +32 (0)2 700 8453
Fax:      +32 (0)2 700 8622
E-mail:   Geert.Uytterhoeven at sonycom.com
Internet: http://www.sony-europe.com/

A division of Sony Europe (Belgium) N.V.
VAT BE 0413.825.160 · RPR Brussels
Fortis · BIC GEBABEBB · IBAN BE41293037680010



More information about the Linuxppc-dev mailing list