powerpc/5121: make clock debug output more readable
authorWolfram Sang <w.sang@pengutronix.de>
Wed, 17 Jun 2009 12:30:31 +0000 (06:30 -0600)
committerGrant Likely <grant.likely@secretlab.ca>
Wed, 17 Jun 2009 07:24:10 +0000 (01:24 -0600)
This patch refactors clock.c by replacing printk calls with
pr_info/pr_cont, and uses '=' in output to connect key/value pairs

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
arch/powerpc/platforms/512x/clock.c

index f4c4c6f..84544d0 100644 (file)
@@ -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);
 }