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