All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
To: Anthony Liguori <aliguori@us.ibm.com>
Cc: qemu-devel@nongnu.org,
	Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>,
	Eduardo Habkost <ehabkost@redhat.com>
Subject: [Qemu-devel] [PATCH 1/5] vl.c: fix '-cpu ?' segfault
Date: Mon, 26 Mar 2012 13:07:46 +0100	[thread overview]
Message-ID: <1332763670-32063-2-git-send-email-stefanha@linux.vnet.ibm.com> (raw)
In-Reply-To: <1332763670-32063-1-git-send-email-stefanha@linux.vnet.ibm.com>

From: Eduardo Habkost <ehabkost@redhat.com>

Fix stupid copy&paste mistake at commit
ecf40beae7dcbb057d4f115207f9d8276832a774: I moved code around but kept
"optarg" on the cpu_list() call.

Reported-by: Jiri Denemark <jdenemar@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
---
 vl.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/vl.c b/vl.c
index 112b0e0..0fccf50 100644
--- a/vl.c
+++ b/vl.c
@@ -3196,7 +3196,7 @@ int main(int argc, char **argv, char **envp)
     cpudef_init();
 
     if (cpu_model && *cpu_model == '?') {
-        list_cpus(stdout, &fprintf, optarg);
+        list_cpus(stdout, &fprintf, cpu_model);
         exit(0);
     }
 
-- 
1.7.9.1

  reply	other threads:[~2012-03-26 12:08 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-26 12:07 [Qemu-devel] [PULL 0/5] Trivial patches for 20 to 26 March 2012 Stefan Hajnoczi
2012-03-26 12:07 ` Stefan Hajnoczi [this message]
2012-03-26 12:07 ` [Qemu-devel] [PATCH 2/5] test: remove qemu-ga reference Stefan Hajnoczi
2012-03-26 12:07 ` [Qemu-devel] [PATCH 3/5] qapi: remove print statements from test-qmp-commands Stefan Hajnoczi
2012-03-26 12:07 ` [Qemu-devel] [PATCH 4/5] test: add test-qmp-commands to make check Stefan Hajnoczi
2012-03-26 12:07 ` [Qemu-devel] [PATCH 5/5] trace-events: Fix broken build caused by wrong format specifier Stefan Hajnoczi
2012-03-26 12:41   ` Andreas Färber
2012-03-26 12:48     ` Alon Levy
2012-03-26 21:10 ` [Qemu-devel] [PULL 0/5] Trivial patches for 20 to 26 March 2012 Anthony Liguori

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=1332763670-32063-2-git-send-email-stefanha@linux.vnet.ibm.com \
    --to=stefanha@linux.vnet.ibm.com \
    --cc=aliguori@us.ibm.com \
    --cc=ehabkost@redhat.com \
    --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.