From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: [PATCH v2 4/4] dt-uart: support /chosen/stdout-path property. Date: Thu, 8 Jan 2015 13:22:24 +0000 Message-ID: <1420723344.19787.76.camel@citrix.com> References: <1420718009.19787.44.camel@citrix.com> <1420718036-29651-4-git-send-email-ian.campbell@citrix.com> <54AE82EA.1090703@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <54AE82EA.1090703@linaro.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Julien Grall Cc: stefano.stabellini@eu.citrix.com, tim@xen.org, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org 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. > > Otherwise: > > Reviewed-by: Julien Grall > > Regards, >