Received: from eggs.gnu.org ([2001:4830:134:3::10]:34346) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGXPS-00049j-22 for qemu-devel@nongnu.org; Wed, 28 Jan 2015 13:32:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YGXPR-00069y-4w for qemu-devel@nongnu.org; Wed, 28 Jan 2015 13:32:14 -0500 Received: from mx1.redhat.com ([209.132.183.28]:42572) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGXPQ-00069l-So for qemu-devel@nongnu.org; Wed, 28 Jan 2015 13:32:13 -0500 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t0SIWBDo031665 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Wed, 28 Jan 2015 13:32:11 -0500 From: Markus Armbruster References: <022e72b53701099e5e7526fcbaa6655bdb5593ab.1422433899.git.pkrempa@redhat.com> <20150128132941.6c593d29@nial.brq.redhat.com> <20150128162128.GD5003@andariel.home> <20150128180122.510d1e0a@nial.brq.redhat.com> Date: Wed, 28 Jan 2015 19:32:08 +0100 In-Reply-To: <20150128180122.510d1e0a@nial.brq.redhat.com> (Igor Mammedov's message of "Wed, 28 Jan 2015 18:01:22 +0100") Message-ID: <87wq46vjrr.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCHv2 1/2] vl.c: Fix error messages when parsing maxmem parameters List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Igor Mammedov Cc: Paolo Bonzini , Peter Krempa , qemu-devel@nongnu.org, mst@redhat.com Igor Mammedov writes: > On Wed, 28 Jan 2015 17:21:28 +0100 > Peter Krempa wrote: > >> On Wed, Jan 28, 2015 at 13:29:41 +0100, Igor Mammedov wrote: >> > On Wed, 28 Jan 2015 09:35:03 +0100 >> > Peter Krempa wrote: >> > >> > > Produce more human readable error messages and fix few spelling >> > > mistakes. >> > > >> > > Also remove a redundant check for the max memory size. >> > > >> > > Signed-off-by: Peter Krempa >> > > --- >> > > >> > > Notes: >> > > Version 2: >> > > - fixed spacing in error message >> > > - changed control flow to allow maxmem == ram_size in case slots == 0 >> > > >> > > vl.c | 34 ++++++++++++++++------------------ >> > > 1 file changed, 16 insertions(+), 18 deletions(-) >> > > >> > > diff --git a/vl.c b/vl.c >> > > index 983259b..5a012f4 100644 >> > > --- a/vl.c >> > > +++ b/vl.c >> > > @@ -2694,29 +2694,27 @@ static void set_memory_options(uint64_t *ram_slots, ram_addr_t *maxram_size) >> > > uint64_t slots; >> > > >> > > sz = qemu_opt_get_size(opts, "maxmem", 0); >> > > + slots = qemu_opt_get_number(opts, "slots", 0); >> > > if (sz < ram_size) { >> > > - error_report("invalid -m option value: maxmem " >> > > - "(0x%" PRIx64 ") <= initial memory (0x" >> > > - RAM_ADDR_FMT ")", sz, ram_size); >> > > + error_report("invalid value of -m option maxmem: " >> > > + "maximum memory size (0x%" PRIx64 ") must at least " >> > typo?? >> > "must be at least" >> > >> >> Hmm, right. Should I respin the series to fix it? > Send an extra incremental patch with subject: > "fixup! vl.c: Fix error messages when parsing maxmem parameters" I'd simply respin, especially a small series like this one.