From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=51686 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OOQwe-0005a1-48 for qemu-devel@nongnu.org; Tue, 15 Jun 2010 03:52:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OOQwc-0005nm-OA for qemu-devel@nongnu.org; Tue, 15 Jun 2010 03:52:27 -0400 Received: from mx1.redhat.com ([209.132.183.28]:53491) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OOQwc-0005nT-C9 for qemu-devel@nongnu.org; Tue, 15 Jun 2010 03:52:26 -0400 Message-ID: <4C173128.2010603@redhat.com> Date: Tue, 15 Jun 2010 09:52:08 +0200 From: Kevin Wolf MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [PATCH] block: fix a warning and possible truncation List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Blue Swirl Cc: qemu-devel Am 14.06.2010 20:55, schrieb Blue Swirl: > Fix a warning from OpenBSD gcc (3.3.5 (propolice)): > /src/qemu/block.c: In function `bdrv_info_stats_bs': > /src/qemu/block.c:1548: warning: long long int format, long unsigned > int arg (arg 6) > > There may be also truncation effects. > > Signed-off-by: Blue Swirl Thanks, applied to the block branch. But why is this even needed? wr_highest_sector is already uint64_t, so wouldn't you expect the result to be uint64_t, too? Kevin