Received: from eggs.gnu.org ([2001:4830:134:3::10]:51214) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aLnMa-0004xS-Jc for qemu-devel@nongnu.org; Wed, 20 Jan 2016 02:39:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aLnMZ-0006EC-GZ for qemu-devel@nongnu.org; Wed, 20 Jan 2016 02:39:32 -0500 Date: Wed, 20 Jan 2016 15:39:22 +0800 From: Fam Zheng Message-ID: <20160120073922.GB28390@ad.usersys.redhat.com> References: <1453263681-22576-1-git-send-email-famz@redhat.com> <87bn8g3e7n.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87bn8g3e7n.fsf@blackfin.pond.sub.org> Subject: Re: [Qemu-devel] [PATCH v5 0/2] block: Reject negative values for throttling options List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Markus Armbruster Cc: Kevin Wolf , berto@igalia.com, qemu-devel@nongnu.org, qemu-block@nongnu.org, mreitz@redhat.com On Wed, 01/20 08:25, Markus Armbruster wrote: > Fam Zheng writes: > > > v5: Add valid value testing in iotests. [Berto] > > Add details in commit message. [Markus] > > Use "%lld" in format string. [Markus] > > Fix ")" -> "]" in error message. [Kevin] > > > > Now the negative values are silently converted to a huge positive number > > because we are doing implicit casting from uint64_t to double. Fix it and add a > > test case (this was once fixed in 7d81c1413c9 but regressed when the block > > device option parsing code was changed). > > Series > Reviewed-by: Markus Armbruster Thanks! Fam