qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] linux-user: use uint64_t for getpid()
@ 2012-01-03 16:08 Fabio Erculiani
  2012-01-03 17:45 ` Alexander Graf
  0 siblings, 1 reply; 2+ messages in thread
From: Fabio Erculiani @ 2012-01-03 16:08 UTC (permalink / raw)
  To: qemu-devel; +Cc: Fabio Erculiani, riku.voipio, agraf

This fixes -Wformat warning introduced by
983da8bec44fd1ab5e9730f01e719b3849aa0a35

Signed-off-by: Fabio Erculiani <lxnay@sabayon.org>
---
 linux-user/syscall.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index f2af5d5..e563c00 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -4680,7 +4680,8 @@ static int open_self_stat(void *cpu_env, int fd)
 
       if (i == 0) {
         /* pid */
-        snprintf(buf, sizeof(buf), "%"PRId64 " ", getpid());
+        val = getpid();
+        snprintf(buf, sizeof(buf), "%"PRId64 " ", val);
       } else if (i == 1) {
         /* app name */
         snprintf(buf, sizeof(buf), "(%s) ", ts->bprm->argv[0]);
-- 
1.7.7

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] [PATCH] linux-user: use uint64_t for getpid()
  2012-01-03 16:08 [Qemu-devel] [PATCH] linux-user: use uint64_t for getpid() Fabio Erculiani
@ 2012-01-03 17:45 ` Alexander Graf
  0 siblings, 0 replies; 2+ messages in thread
From: Alexander Graf @ 2012-01-03 17:45 UTC (permalink / raw)
  To: Fabio Erculiani; +Cc: riku.voipio, qemu-devel


On 03.01.2012, at 17:08, Fabio Erculiani wrote:

> This fixes -Wformat warning introduced by
> 983da8bec44fd1ab5e9730f01e719b3849aa0a35
> 
> Signed-off-by: Fabio Erculiani <lxnay@sabayon.org>

As long as your original patch isn't applied yet, please just respin it and submit v2 or v3 of your original patch :).


Alex

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-01-03 17:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-03 16:08 [Qemu-devel] [PATCH] linux-user: use uint64_t for getpid() Fabio Erculiani
2012-01-03 17:45 ` Alexander Graf

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).