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

Wolfram Sang w.sang at pengutronix.de
Fri May 8 22:34:13 EST 2009


- Drop KERN_ levels for printks which print to the same line
- 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);
 		printk("\n");
 	}
 	mutex_unlock(&clocks_mutex);

-- 
Pengutronix e.K.                           | Wolfram Sang                |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20090508/129cf8ba/attachment.pgp>


More information about the Linuxppc-dev mailing list