qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v31 23/23] fix warning.


From: Yoshinori Sato
Subject: Re: [PATCH v31 23/23] fix warning.
Date: Tue, 25 Feb 2020 00:02:36 +0900
User-agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (Gojō) APEL/10.8 EasyPG/1.0.0 Emacs/26 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO)

On Mon, 24 Feb 2020 23:28:24 +0900,
Peter Maydell wrote:
> 
> On Sun, 23 Feb 2020 at 13:33, Yoshinori Sato <address@hidden> wrote:
> >
> > Signed-off-by: Yoshinori Sato <address@hidden>
> > ---
> >  hw/rx/rx-virt.c | 6 ++++--
> >  1 file changed, 4 insertions(+), 2 deletions(-)
> >
> > diff --git a/hw/rx/rx-virt.c b/hw/rx/rx-virt.c
> > index 6cf7936201..4ee6647728 100644
> > --- a/hw/rx/rx-virt.c
> > +++ b/hw/rx/rx-virt.c
> > @@ -90,8 +90,10 @@ static void rxvirt_init(MachineState *machine)
> >
> >      /* Load kernel and dtb */
> >      if (kernel_filename) {
> > -        /* The kernel image is loaded into
> > -           the latter half of the SDRAM space. */
> > +        /*
> > +          The kernel image is loaded into
> > +          the latter half of the SDRAM space.
> > +        */
> 
> The comment format we prefer is described in CODING_STYLE.rst;
> for block comments, and it looks like this:
>     /*
>      * Leading and closing slash-star and star-slash
>      * on their own line; each other line has a star
>      * in the left column.
>      */
> 
> thanks
> -- PMM

My local file using your suggested style.
    91      /* Load kernel and dtb */
    92      if (kernel_filename) {
    93          /*
    94           * The kernel image is loaded into
    95           * the latter half of the SDRAM space.
    96           */
    97          kernel_offset = machine->ram_size / 2;
    98          rx_load_image(RXCPU(first_cpu), kernel_filename,
    99                        SDRAM_BASE + kernel_offset, kernel_offset);

Check that I may make a mistake in the file.

-- 
Yosinori Sato



reply via email to

[Prev in Thread] Current Thread [Next in Thread]