Re: [PATCH] of: Reduce log level of of_phandle_iterator_next()

From: Rob Herring
Date: Wed Nov 20 2019 - 11:10:02 EST


On Tue, Nov 19, 2019 at 10:00 PM Saravana Kannan <saravanak@xxxxxxxxxx> wrote:
>
> These error messages are mostly useful for debugging malformed device
> tree data.

A malformed DT is an error, no?

> So change these messages from error to debug messages to
> avoid spamming the end user. Any error messages that might actually be
> useful to the user is probably going to come from the caller of these
> APIs. So leave it to them to decide if they need to print any error
> messages.

Generally that pattern results in every caller doing their own message
which is the wrong way around IMO. And recent patches fix some of
those cases[1].

Rob

[1] https://lkml.org/lkml/2019/7/30/41