summaryrefslogtreecommitdiffstats
path: root/drivers/of
diff options
context:
space:
mode:
authorMarcin Nowakowski <marcin.nowakowski@imgtec.com>2016-12-01 09:00:55 +0100
committerRob Herring <robh@kernel.org>2016-12-09 10:32:40 -0600
commit4aa663444048396799b49b5b782552c1ba15c39d (patch)
treec5d302d9cec7061f4819ed6a7a2a03ac40aa4f39 /drivers/of
parent5f01f26375a96cae899d8f148612f2903d6b083a (diff)
downloadlinux-4aa663444048396799b49b5b782552c1ba15c39d.tar.bz2
drivers/of: fix missing pr_cont()s in of_print_phandle_args
Since the KERN_CONT changes, the current debug printks have a lot of empty lines making the log messages very hard to read. Signed-off-by: Marcin Nowakowski <marcin.nowakowski@imgtec.com> Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'drivers/of')
-rw-r--r--drivers/of/base.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/of/base.c b/drivers/of/base.c
index 128e114f9210..5e04572e692a 100644
--- a/drivers/of/base.c
+++ b/drivers/of/base.c
@@ -1566,9 +1566,12 @@ void of_print_phandle_args(const char *msg, const struct of_phandle_args *args)
{
int i;
printk("%s %s", msg, of_node_full_name(args->np));
- for (i = 0; i < args->args_count; i++)
- printk(i ? ",%08x" : ":%08x", args->args[i]);
- printk("\n");
+ for (i = 0; i < args->args_count; i++) {
+ const char delim = i ? ',' : ':';
+
+ pr_cont("%c%08x", delim, args->args[i]);
+ }
+ pr_cont("\n");
}
int of_phandle_iterator_init(struct of_phandle_iterator *it,