linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mpc5121/clocks: make debug output more readable
@ 2009-05-08 12:34 Wolfram Sang
  2009-05-08 14:17 ` Geert Uytterhoeven
  2009-05-08 15:40 ` Grant Likely
  0 siblings, 2 replies; 4+ messages in thread
From: Wolfram Sang @ 2009-05-08 12:34 UTC (permalink / raw)
  To: linuxppc-dev

[-- Attachment #1: Type: text/plain, Size: 1355 bytes --]


- 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@pengutronix.de>
Cc: John Rigby <jcrigby@gmail.com>
Cc: Grant Likely <grant.likely@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/  |

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

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

end of thread, other threads:[~2009-05-15 14:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-08 12:34 [PATCH] mpc5121/clocks: make debug output more readable Wolfram Sang
2009-05-08 14:17 ` Geert Uytterhoeven
2009-05-08 15:40 ` Grant Likely
2009-05-15 14:40   ` [PATCH V2] " Wolfram Sang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).