From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Jan Beulich" Subject: Re: [PATCH V5 10/15] Add arch specific module handling to read_file() Date: Tue, 23 Sep 2014 13:28:20 +0100 Message-ID: <5421838402000078000379A0@mail.emea.novell.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> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Roy Franz Cc: keir , Ian Campbell , tim , xen-devel , Stefano Stabellini , Fu Wei List-Id: xen-devel@lists.xenproject.org >>> 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. Jan