From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:48538) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SlgA5-0001kx-Kl for qemu-devel@nongnu.org; Mon, 02 Jul 2012 08:55:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SlgA2-0006JQ-Rs for qemu-devel@nongnu.org; Mon, 02 Jul 2012 08:55:29 -0400 Received: from e06smtp13.uk.ibm.com ([195.75.94.109]:43207) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SlgA2-0006IP-JK for qemu-devel@nongnu.org; Mon, 02 Jul 2012 08:55:26 -0400 Received: from /spool/local by e06smtp13.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 2 Jul 2012 13:55:20 +0100 Received: from d06av01.portsmouth.uk.ibm.com (d06av01.portsmouth.uk.ibm.com [9.149.37.212]) by d06nrmr1707.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q62CtGgn2052330 for ; Mon, 2 Jul 2012 13:55:16 +0100 Received: from d06av01.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av01.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q62CtFS0023677 for ; Mon, 2 Jul 2012 06:55:15 -0600 Date: Mon, 2 Jul 2012 13:55:15 +0100 From: Stefan Hajnoczi Message-ID: <20120702125515.GA16482@stefanha-thinkpad.localdomain> References: <1340984094-5451-1-git-send-email-armbru@redhat.com> <1340984094-5451-19-git-send-email-armbru@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1340984094-5451-19-git-send-email-armbru@redhat.com> Subject: Re: [Qemu-devel] [PATCH 18/32] hd-geometry: Switch to uint32_t to match BlockConf List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Markus Armbruster Cc: kwolf@redhat.com, pbonzini@redhat.com, aliguori@us.ibm.com, qemu-devel@nongnu.org On Fri, Jun 29, 2012 at 05:34:40PM +0200, Markus Armbruster wrote: > Best to use the same type, to avoid unwanted truncation or sign > extension. > > BlockConf can't use plain int for cyls, heads and secs, because > integer properties require an exact width. > > Signed-off-by: Markus Armbruster > --- > blockdev.h | 2 +- > hw/hd-geometry.c | 4 ++-- > hw/ide/core.c | 2 +- > hw/scsi-disk.c | 2 +- > hw/virtio-blk.c | 2 +- > 5 files changed, 6 insertions(+), 6 deletions(-) It would be nice to update the hd_geometry_lchs_guess() trace event that you added to use uint32_t + %u instead of int + %d. Stefan