All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] of/address: replace printk() with pr_debug() / pr_err()
@ 2015-12-08 16:07 Masahiro Yamada
  2015-12-08 16:16 ` Joe Perches
  0 siblings, 1 reply; 26+ messages in thread
From: Masahiro Yamada @ 2015-12-08 16:07 UTC (permalink / raw)
  To: devicetree
  Cc: Masahiro Yamada, Frank Rowand, Rob Herring, linux-kernel, Grant Likely

Trivial changes suggested by checkpatch.pl.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
---

Changes in v2:
  - Fix printk(KERN_DEBUG ...) too

 drivers/of/address.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/of/address.c b/drivers/of/address.c
index 9582c57..65fafbb 100644
--- a/drivers/of/address.c
+++ b/drivers/of/address.c
@@ -23,7 +23,7 @@ static int __of_address_to_resource(struct device_node *dev,
 #ifdef DEBUG
 static void of_dump_addr(const char *s, const __be32 *addr, int na)
 {
-	printk(KERN_DEBUG "%s", s);
+	pr_debug("%s", s);
 	while (na--)
 		printk(" %08x", be32_to_cpu(*(addr++)));
 	printk("\n");
@@ -597,7 +597,7 @@ static u64 __of_translate_address(struct device_node *dev,
 		pbus = of_match_bus(parent);
 		pbus->count_cells(dev, &pna, &pns);
 		if (!OF_CHECK_COUNTS(pna, pns)) {
-			printk(KERN_ERR "prom_parse: Bad cell count for %s\n",
+			pr_err("prom_parse: Bad cell count for %s\n",
 			       of_node_full_name(dev));
 			break;
 		}
-- 
1.9.1


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

end of thread, other threads:[~2015-12-10  6:20 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-08 16:07 [PATCH v2] of/address: replace printk() with pr_debug() / pr_err() Masahiro Yamada
2015-12-08 16:16 ` Joe Perches
2015-12-08 17:03   ` Joe Perches
2015-12-08 21:28     ` Rob Herring
2015-12-09  0:03       ` Joe Perches
2015-12-09 12:03         ` Andy Shevchenko
2015-12-09 12:03           ` Andy Shevchenko
2015-12-09 19:28           ` Joe Perches
2015-12-09 20:02             ` Andy Shevchenko
2015-12-09 20:02               ` Andy Shevchenko
2015-12-09 20:09               ` Joe Perches
2015-12-09 20:17               ` Rasmus Villemoes
2015-12-09 20:17                 ` Rasmus Villemoes
2015-12-09 20:36                 ` Andy Shevchenko
2015-12-09 20:42                   ` Joe Perches
2015-12-09 21:59       ` [PATCH] hexdump: Add ability to do endian conversions in print_hex_dump functions Joe Perches
2015-12-09 22:09         ` Andrew Morton
2015-12-09 22:16           ` Joe Perches
2015-12-09 22:45             ` Andrew Morton
2015-12-09 23:02               ` Joe Perches
2015-12-09 22:11         ` Andy Shevchenko
2015-12-09 22:22           ` Joe Perches
2015-12-09 23:09           ` Andy Shevchenko
2015-12-09 23:15             ` Joe Perches
2015-12-10  5:55         ` kbuild test robot
2015-12-10  6:20           ` Joe Perches

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.