All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alon Levy <alevy@redhat.com>
To: Michael Roth <mdroth@linux.vnet.ibm.com>
Cc: qemu-devel@nongnu.org, Stefan Berger <stefanb@linux.vnet.ibm.com>
Subject: Re: [Qemu-devel] [PATCH] fix '-cpu ?' Segfault
Date: Fri, 23 Mar 2012 22:37:04 +0200	[thread overview]
Message-ID: <20120323203704.GM23394@garlic> (raw)
In-Reply-To: <20120323203148.GC2219@illuin>

On Fri, Mar 23, 2012 at 03:31:48PM -0500, Michael Roth wrote:
> On Thu, Mar 22, 2012 at 09:28:16AM -0400, Stefan Berger wrote:
> > On 03/21/2012 08:33 AM, Eduardo Habkost wrote:
> > >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>
> > >---
> > >  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);
> > >      }
> > >
> > Does -cpu ? actually work then? I only see the list of cpus when
> > using -cpu ?_ for example.

use "-cpu \?"

> 
> I think this is actually just a shell issue:
> 
> mdroth@illuin:~/tmp/empty$ ls
> mdroth@illuin:~/tmp/empty$ echo ?
> ?
> mdroth@illuin:~/tmp/empty$ touch a
> mdroth@illuin:~/tmp/empty$ echo ?
> a
> mdroth@illuin:~/tmp/empty$ echo ?_
> ?_
> 
> > 
> >    Stefan
> > 
> > 
> 

      reply	other threads:[~2012-03-23 20:37 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-21 12:33 [Qemu-devel] [PATCH] fix '-cpu ?' Segfault Eduardo Habkost
2012-03-21 13:24 ` Stefan Hajnoczi
2012-03-22 13:28 ` Stefan Berger
2012-03-22 13:46   ` Andreas Färber
2012-03-22 14:05     ` Eduardo Habkost
2012-03-23 20:31   ` Michael Roth
2012-03-23 20:37     ` Alon Levy [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=20120323203704.GM23394@garlic \
    --to=alevy@redhat.com \
    --cc=mdroth@linux.vnet.ibm.com \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanb@linux.vnet.ibm.com \
    /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.