Received: from eggs.gnu.org ([208.118.235.92]:39369) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TvXYa-0005bv-0O for qemu-devel@nongnu.org; Wed, 16 Jan 2013 13:17:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TvXYY-0005Q7-MK for qemu-devel@nongnu.org; Wed, 16 Jan 2013 13:17:47 -0500 Received: from mx1.redhat.com ([209.132.183.28]:14080) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TvXYY-0005Q0-FD for qemu-devel@nongnu.org; Wed, 16 Jan 2013 13:17:46 -0500 Date: Wed, 16 Jan 2013 16:18:35 -0200 From: Eduardo Habkost Message-ID: <20130116181834.GG10683@otherpad.lan.raisama.net> References: <1358349851-20960-1-git-send-email-ehabkost@redhat.com> <1358349851-20960-7-git-send-email-ehabkost@redhat.com> <50F6E28B.1010603@redhat.com> <20130116174236.GD10683@otherpad.lan.raisama.net> <50F6E95A.4090401@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <50F6E95A.4090401@redhat.com> Subject: Re: [Qemu-devel] [PATCH 6/8] vl.c: Use parse_uint_full() for NUMA nodeid List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: Chegu Vinod , qemu-devel@nongnu.org, Anthony Liguori On Wed, Jan 16, 2013 at 10:54:34AM -0700, Eric Blake wrote: > On 01/16/2013 10:42 AM, Eduardo Habkost wrote: > > > > Or, we could simply change the meaning of "nodeid=010" and document it > > in the commit message and QEMU ChageLog. Which option do the QEMU > > maintainers prefer? > > I'm not a maintainer, so anyone is free to overrule me; but I'm > personally fine with just documenting that the semantic change is > intentional. It's enough of a corner case that probably no one was > relying on leading 0 still giving decimal parsing (libvirt certainly > wasn't relying on it], and the flexibility of allowing hex parsing is > useful. But do document it in the commit message; a silent change is > not fair. I will add a 'base' parameter to parse_uint*() anyway, as it may be useful somewhere else. Then keeping the existing behavior will be trivial, so I will keep it by now. Later, when changing the code to use QemuOpts, we may decide to change the behavior (to keep the code simpler) and document the semantic change. -- Eduardo