From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: [PATCH V5 10/15] Add arch specific module handling to read_file() Date: Tue, 23 Sep 2014 13:41:49 +0100 Message-ID: <1411476109.1781.25.camel@kazak.uk.xensource.com> References: <1411080607-32365-1-git-send-email-roy.franz@linaro.org> <1411080607-32365-11-git-send-email-roy.franz@linaro.org> <542035B20200007800036ED3@mail.emea.novell.com> <5421838402000078000379A0@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <5421838402000078000379A0@mail.emea.novell.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: Jan Beulich Cc: keir , tim , xen-devel , Roy Franz , Stefano Stabellini , Fu Wei List-Id: xen-devel@lists.xenproject.org On Tue, 2014-09-23 at 13:28 +0100, Jan Beulich wrote: > >>> On 23.09.14 at 03:57, wrote: > > On Mon, Sep 22, 2014 at 5:44 AM, Jan Beulich wrote: > >>>>> On 19.09.14 at 00:50, wrote: > >>> @@ -115,6 +116,15 @@ static void __init DisplayUint(UINT64 Val, INTN Width) > >>> PrintStr(PrintString); > >>> } > >>> > >>> +static size_t __init wstrlen(const CHAR16 * s) > >>> +{ > >>> + const CHAR16 *sc; > >>> + > >>> + for (sc = s; *sc != L'\0'; ++sc) > >>> + /* nothing */; > >>> + return sc - s; > >>> +} > >> > >> Coding style (many issues). > > > > static size_t __init wstrlen(const CHAR16 *s) > > { > > const CHAR16 *sc; > > > > for ( sc = s; *sc != L'\0'; ++sc ) > > ; > > return sc - s; > > } > > > > Is the above OK? Not sure what else to change here... > > Almost - the lone ; is still indented one level (4 spaces) too deep. Would you be inclined to keep the /* nothing */ too as a signal to the reader that it is deliberate? Ian