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

From: Wolfram Sang <[email-masked]>
Date: Fri, 15 May 2009 16:40:15 +0200

- refactor printk with pr_info/pr_cont
- use '=' in output to connect key/value pairs

Signed-off-by: Wolfram Sang <[email-masked]>
Cc: John Rigby <[email-masked]>
Cc: Grant Likely <[email-masked]>

---
 arch/powerpc/platforms/512x/clock.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

Index: arch/powerpc/platforms/512x/clock.c
===================================================================
--- arch/powerpc/platforms/512x/clock.c.orig
+++ arch/powerpc/platforms/512x/clock.c
@@ -83,13 +83,13 @@ 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);
+		pr_info("  %s=%ld", p->name, p->rate);
 		if (p->parent)
-			printk(KERN_INFO " %s %ld", p->parent->name,
+			pr_cont(" %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("\n");
+			pr_cont(" reg/bit=%d/%d", p->reg, p->bit);
+		pr_cont("\n");
 	}
 	mutex_unlock(&clocks_mutex);
 }

-- 
Pengutronix e.K.                           | Wolfram Sang                |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |