Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e7c5a4f2 authored by Wolfram Sang's avatar Wolfram Sang Committed by Grant Likely
Browse files

powerpc/5121: make clock debug output more readable



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: default avatarWolfram Sang <w.sang@pengutronix.de>
Signed-off-by: default avatarGrant Likely <grant.likely@secretlab.ca>
parent 87c441e5
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -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);
}