* Re: [Qemu-devel] [Patch] fix /proc/self/maps output [not found] <CAKdteOZ2NHm2eeH72UxahDrPSN5vu46J3ZsjLhFjMYjR=P2R2Q@mail.gmail.com> @ 2013-03-29 14:33 ` Christophe Lyon 2013-03-29 14:44 ` Peter Maydell 0 siblings, 1 reply; 7+ messages in thread From: Christophe Lyon @ 2013-03-29 14:33 UTC (permalink / raw) To: qemu-devel Hi, May I ping for this small patch? Thanks, Christophe On 19 February 2013 17:28, Christophe Lyon <christophe.lyon@linaro.org> wrote: > Hi, > Here is a small patch for the /proc/self/maps output (Linux user > mode), which adds a space after the last number in the case where > there is no filename to print. This matches what the kernel does, and > is expected by libsanitizer. > > Christophe. ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Qemu-devel] [Patch] fix /proc/self/maps output 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 0 siblings, 1 reply; 7+ messages in thread From: Peter Maydell @ 2013-03-29 14:44 UTC (permalink / raw) To: Christophe Lyon; +Cc: qemu-devel On 29 March 2013 14:33, Christophe Lyon <christophe.lyon@linaro.org> wrote: > Hi, > May I ping for this small patch? Hi Christophe; I'm afraid the patch can't be applied because it's missing a signed-off by. (Also if it was sent inline in the usual format rather than as an attachment it would be easier to review.) thanks -- PMM ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Qemu-devel] [Patch] fix /proc/self/maps output 2013-03-29 14:44 ` Peter Maydell @ 2013-03-29 15:13 ` Christophe Lyon 2013-03-29 15:18 ` Eric Blake 0 siblings, 1 reply; 7+ messages in thread From: Christophe Lyon @ 2013-03-29 15:13 UTC (permalink / raw) To: Peter Maydell; +Cc: qemu-devel Hi, Sorry I wasn't aware of such restrictions (I'm used to gcc/binutils conventions), and my thunderbird does display my patch as if it were inline :-) So.... trying a cut-and-paste approach in gmail, for this one character patch: /proc/self/maps: 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> 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); } } On 29 March 2013 15:44, Peter Maydell <peter.maydell@linaro.org> wrote: > On 29 March 2013 14:33, Christophe Lyon <christophe.lyon@linaro.org> wrote: >> Hi, >> May I ping for this small patch? > > Hi Christophe; I'm afraid the patch can't be applied because it's > missing a signed-off by. (Also if it was sent inline in the usual > format rather than as an attachment it would be easier to review.) > > thanks > -- PMM ^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [Qemu-devel] [Patch] fix /proc/self/maps output 2013-03-29 15:13 ` Christophe Lyon @ 2013-03-29 15:18 ` Eric Blake 2013-03-29 16:01 ` Christophe Lyon 0 siblings, 1 reply; 7+ messages in thread From: Eric Blake @ 2013-03-29 15:18 UTC (permalink / raw) To: Christophe Lyon; +Cc: Peter Maydell, qemu-devel [-- Attachment #1: Type: text/plain, Size: 1098 bytes --] On 03/29/2013 09:13 AM, Christophe Lyon wrote: > Hi, > > Sorry I wasn't aware of such restrictions (I'm used to gcc/binutils > conventions), and my thunderbird does display my patch as if it were > inline :-) > So.... trying a cut-and-paste approach in gmail, for this one character patch: Still not ideal. The commentary above should not be part of the final commit message, so you should move it... > > > /proc/self/maps: 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> ...here, after a --- line that tells 'git am' where to stop reading commit message. 'git send-email' is your friend. Then whether or not you use 'git send-email', it is always wise to test if your patch is usable by first sending it to yourself, and seeing if 'git am' will do the right thing with it. http://wiki.qemu.org/Contribute/SubmitAPatch has more hints. -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 621 bytes --] ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Qemu-devel] [Patch] fix /proc/self/maps output 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 0 siblings, 2 replies; 7+ messages in thread From: Christophe Lyon @ 2013-03-29 16:01 UTC (permalink / raw) To: Eric Blake; +Cc: Peter Maydell, qemu-devel 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); } } -- 1.7.10.4 On 29 March 2013 16:18, Eric Blake <eblake@redhat.com> wrote: > On 03/29/2013 09:13 AM, Christophe Lyon wrote: >> Hi, >> >> Sorry I wasn't aware of such restrictions (I'm used to gcc/binutils >> conventions), and my thunderbird does display my patch as if it were >> inline :-) >> So.... trying a cut-and-paste approach in gmail, for this one character patch: > > Still not ideal. The commentary above should not be part of the final > commit message, so you should move it... > >> >> >> /proc/self/maps: 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> > > ...here, after a --- line that tells 'git am' where to stop reading > commit message. 'git send-email' is your friend. Then whether or not > you use 'git send-email', it is always wise to test if your patch is > usable by first sending it to yourself, and seeing if 'git am' will do > the right thing with it. > > http://wiki.qemu.org/Contribute/SubmitAPatch has more hints. > > -- > Eric Blake eblake redhat com +1-919-301-3266 > Libvirt virtualization library http://libvirt.org > ^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [Qemu-devel] [Patch] fix /proc/self/maps output 2013-03-29 16:01 ` Christophe Lyon @ 2013-03-29 17:53 ` Peter Maydell 2013-03-29 22:35 ` H. Peter Anvin 1 sibling, 0 replies; 7+ messages in thread From: Peter Maydell @ 2013-03-29 17:53 UTC (permalink / raw) To: Christophe Lyon; +Cc: Riku Voipio, qemu-devel On 29 March 2013 16:01, Christophe Lyon <christophe.lyon@linaro.org> 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> Reviewed-by: Peter Maydell <peter.maydell@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); > } > } > > -- > 1.7.10.4 ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Qemu-devel] [Patch] fix /proc/self/maps output 2013-03-29 16:01 ` Christophe Lyon 2013-03-29 17:53 ` Peter Maydell @ 2013-03-29 22:35 ` H. Peter Anvin 1 sibling, 0 replies; 7+ messages in thread From: H. Peter Anvin @ 2013-03-29 22:35 UTC (permalink / raw) To: Christophe Lyon; +Cc: Peter Maydell, qemu-devel 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 ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2013-03-29 22:36 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [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 is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).