All of lore.kernel.org
 help / color / mirror / Atom feed
From: "H. Peter Anvin" <hpa@zytor.com>
To: Christophe Lyon <christophe.lyon@linaro.org>
Cc: Peter Maydell <peter.maydell@linaro.org>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [Patch] fix /proc/self/maps output
Date: Fri, 29 Mar 2013 15:35:40 -0700	[thread overview]
Message-ID: <5156173C.40609@zytor.com> (raw)
In-Reply-To: <CAKdteOY+vnGOFHQAsihxqO2YTzoexj3p7i4kTVbVro+8fqgxow@mail.gmail.com>

On 03/29/2013 09:01 AM, Christophe Lyon wrote:
> Add a space at end of line when there is no filename to print, to
> conform to linux kernel format.
> 
> Signed-off-by: Christophe Lyon <christophe.lyon@linaro.org>
> ---
>  linux-user/syscall.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/linux-user/syscall.c b/linux-user/syscall.c
> index a148d9f..3b0ca86 100644
> --- a/linux-user/syscall.c
> +++ b/linux-user/syscall.c
> @@ -5016,7 +5016,7 @@ static int open_self_maps(void *cpu_env, int fd)
>                      " %c%c%c%c %08" PRIx64 " %02x:%02x %d%s%s\n",
>                      h2g(min), h2g(max), flag_r, flag_w,
>                      flag_x, flag_p, offset, dev_maj, dev_min, inode,
> -                    path[0] ? "          " : "", path);
> +                    path[0] ? "          " : " ", path);
>          }
>      }
> 

Please move the fixed space into the format.  Perhaps even use a %-123s
type format even...

	-hpa

      parent reply	other threads:[~2013-03-29 22:36 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAKdteOZ2NHm2eeH72UxahDrPSN5vu46J3ZsjLhFjMYjR=P2R2Q@mail.gmail.com>
2013-03-29 14:33 ` [Qemu-devel] [Patch] fix /proc/self/maps output Christophe Lyon
2013-03-29 14:44   ` Peter Maydell
2013-03-29 15:13     ` Christophe Lyon
2013-03-29 15:18       ` Eric Blake
2013-03-29 16:01         ` Christophe Lyon
2013-03-29 17:53           ` Peter Maydell
2013-03-29 22:35           ` H. Peter Anvin [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5156173C.40609@zytor.com \
    --to=hpa@zytor.com \
    --cc=christophe.lyon@linaro.org \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.