From: Ian Campbell <Ian.Campbell@citrix.com>
To: Julien Grall <julien.grall@linaro.org>
Cc: stefano.stabellini@eu.citrix.com, tim@xen.org, xen-devel@lists.xen.org
Subject: Re: [PATCH v2 4/4] dt-uart: support /chosen/stdout-path property.
Date: Mon, 12 Jan 2015 15:22:37 +0000 [thread overview]
Message-ID: <1421076157.26317.97.camel@citrix.com> (raw)
In-Reply-To: <54AE867D.5030903@linaro.org>
On Thu, 2015-01-08 at 13:30 +0000, Julien Grall wrote:
> On 08/01/15 13:22, Ian Campbell wrote:
> > On Thu, 2015-01-08 at 13:15 +0000, Julien Grall wrote:
> >> Hi Ian,
> >>
> >> On 08/01/15 11:53, Ian Campbell wrote:
> >>> + ret = dt_property_read_string(chosen, "stdout-path", &stdout);
> >>> + if ( ret >= 0 )
> >>> + {
> >>> + printk("Taking dtuart configuration from /chosen/stdout-path\n");
> >>> + if ( strlcpy(opt_dtuart, stdout, sizeof(opt_dtuart))
> >>> + >= sizeof(opt_dtuart) )
> >>> + printk("WARNING: /chosen/stdout-path too long, truncated\n");
> >>
> >> I would add XENLOG_WARNING here and ...
> >>
> >>> + }
> >>> + else if ( ret != -EINVAL /* Not present */ )
> >>> + printk("Failed to read /chosen/stdout-path (%d)\n", ret);
> >>
> >> XENLOG_ERROR here.
> >
> > In practice these only go via the earlyprintk mechanism, since the
> > console can't be setup yet. I'm not sure it's worthwhile tagging such
> > messages.
>
> earlyprintk is transparent for the console code. Tagging may help if we
> decide to implement other kind of console later (VGA, PCI UART...).
>
> Anyway, I doesn't change much things here as the message is tagged as
> WARNING by default. So it will be always printing.
It turns out that none of the existing prints in this function use the
tags, and I think its of marginal use in this context so I don't think
it is necessary to go changing them all, or to only use the tags for
these two messages.
Ian.
next prev parent reply other threads:[~2015-01-12 15:22 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-08 11:53 [PATCH v2 0/4] dt-uart: cleanups, bugfixes and /chosen/stdout-path support Ian Campbell
2015-01-08 11:53 ` [PATCH v2 1/4] dt-uart: add an emacs magic block Ian Campbell
2015-01-08 11:53 ` [PATCH v2 2/4] dt-uart: Clarify log messages at init time Ian Campbell
2015-01-08 11:53 ` [PATCH v2 3/4] dt-uart: use ':' as separator between path and options Ian Campbell
2015-01-08 12:26 ` Julien Grall
2015-01-08 12:29 ` Ian Campbell
2015-01-08 11:53 ` [PATCH v2 4/4] dt-uart: support /chosen/stdout-path property Ian Campbell
2015-01-08 13:15 ` Julien Grall
2015-01-08 13:22 ` Ian Campbell
2015-01-08 13:30 ` Julien Grall
2015-01-12 15:22 ` Ian Campbell [this message]
2015-01-12 15:24 ` Julien Grall
2015-01-12 16:31 ` Ian Campbell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1421076157.26317.97.camel@citrix.com \
--to=ian.campbell@citrix.com \
--cc=julien.grall@linaro.org \
--cc=stefano.stabellini@eu.citrix.com \
--cc=tim@xen.org \
--cc=xen-devel@lists.xen.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.