Received: from eggs.gnu.org ([2001:4830:134:3::10]:58912) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zqhyn-0000lG-AD for qemu-devel@nongnu.org; Mon, 26 Oct 2015 09:38:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zqhyk-0005uC-42 for qemu-devel@nongnu.org; Mon, 26 Oct 2015 09:38:29 -0400 Received: from mx1.redhat.com ([209.132.183.28]:53405) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zqhyj-0005tc-V1 for qemu-devel@nongnu.org; Mon, 26 Oct 2015 09:38:26 -0400 Date: Mon, 26 Oct 2015 11:38:22 -0200 From: Eduardo Habkost Message-ID: <20151026133822.GA4180@thinpad.lan.raisama.net> References: <1445189728-860-1-git-send-email-drjones@redhat.com> <1445189728-860-2-git-send-email-drjones@redhat.com> <87si56au99.fsf@blackfin.pond.sub.org> <20151026130049.GE30256@hawk.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20151026130049.GE30256@hawk.localdomain> Subject: Re: [Qemu-devel] [PATCH 1/2] vl: trivial: minor tweaks to a max-cpu error msg List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Andrew Jones Cc: peter.maydell@linaro.org, Markus Armbruster , qemu-devel@nongnu.org On Mon, Oct 26, 2015 at 02:00:49PM +0100, Andrew Jones wrote: > On Tue, Oct 20, 2015 at 09:12:18AM +0200, Markus Armbruster wrote: > > Andrew Jones writes: > > > > > Signed-off-by: Andrew Jones > > > --- > > > vl.c | 4 ++-- > > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > > > diff --git a/vl.c b/vl.c > > > index 7c806a2428399..9a64b75ebbd24 100644 > > > --- a/vl.c > > > +++ b/vl.c > > > @@ -4080,8 +4080,8 @@ int main(int argc, char **argv, char **envp) > > > > > > machine_class->max_cpus = machine_class->max_cpus ?: 1; /* Default to UP */ > > > if (max_cpus > machine_class->max_cpus) { > > > - fprintf(stderr, "Number of SMP cpus requested (%d), exceeds max cpus " > > > - "supported by machine `%s' (%d)\n", max_cpus, > > > + fprintf(stderr, "Number of SMP CPUs requested (%d) exceeds max CPUs " > > > + "supported by machine '%s' (%d)\n", max_cpus, > > > machine_class->name, machine_class->max_cpus); > > > exit(1); > > > } > > > > While you're touching this, error_report(), please. > > > > Good call. Eduardo, I'll send you a v2 now. v1 was already merged, as it was an improvement anyway. A separate patch to use error_report() will be welcome, though. -- Eduardo