[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] Re: [PATCH] block: fix a warning and possible truncatio
From: |
Markus Armbruster |
Subject: |
Re: [Qemu-devel] Re: [PATCH] block: fix a warning and possible truncation |
Date: |
Tue, 15 Jun 2010 10:08:15 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) |
Kevin Wolf <address@hidden> writes:
> 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 <address@hidden>
>
> 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?
Makes me wonder. To what's uint64_t typedef'ed on this machine? And to
what does PRId64 expand?