diff options
| author | Blue Swirl <blauwirbel@gmail.com> | 2010-06-14 18:55:33 +0000 |
|---|---|---|
| committer | Kevin Wolf <kwolf@redhat.com> | 2010-06-15 09:42:30 +0200 |
| commit | 5ffbbc67b50e71265527e97b7caa74faa0d0b7cc (patch) | |
| tree | 797b74061bb13def3b64ae5399019409b4e1f9ef | |
| parent | bb350a5e9b961a8c3940b3451c329ff07c027aa1 (diff) | |
| download | focaccia-qemu-5ffbbc67b50e71265527e97b7caa74faa0d0b7cc.tar.gz focaccia-qemu-5ffbbc67b50e71265527e97b7caa74faa0d0b7cc.zip | |
block: fix a warning and possible truncation
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 <blauwirbel@gmail.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
| -rw-r--r-- | block.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/block.c b/block.c index 383d59fb0a..3fc2969211 100644 --- a/block.c +++ b/block.c @@ -1574,7 +1574,8 @@ static QObject* bdrv_info_stats_bs(BlockDriverState *bs) "} }", bs->rd_bytes, bs->wr_bytes, bs->rd_ops, bs->wr_ops, - bs->wr_highest_sector * (long)BDRV_SECTOR_SIZE); + bs->wr_highest_sector * + (uint64_t)BDRV_SECTOR_SIZE); dict = qobject_to_qdict(res); if (*bs->device_name) { |