From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:42608) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SBB9R-0007Om-8s for qemu-devel@nongnu.org; Fri, 23 Mar 2012 16:31:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SBB9P-0005ZH-LN for qemu-devel@nongnu.org; Fri, 23 Mar 2012 16:31:56 -0400 Received: from mail-ob0-f173.google.com ([209.85.214.173]:62317) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SBB9P-0005Yw-E8 for qemu-devel@nongnu.org; Fri, 23 Mar 2012 16:31:55 -0400 Received: by obbwd20 with SMTP id wd20so3022517obb.4 for ; Fri, 23 Mar 2012 13:31:53 -0700 (PDT) Sender: fluxion Date: Fri, 23 Mar 2012 15:31:48 -0500 From: Michael Roth Message-ID: <20120323203148.GC2219@illuin> References: <1332333220-31420-1-git-send-email-ehabkost@redhat.com> <4F6B28F0.9060301@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4F6B28F0.9060301@linux.vnet.ibm.com> Subject: Re: [Qemu-devel] [PATCH] fix '-cpu ?' Segfault List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Berger Cc: qemu-devel@nongnu.org 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 > >Signed-off-by: Eduardo Habkost > >--- > > 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. 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 > >