aboutsummaryrefslogtreecommitdiff
path: root/block/iscsi.c
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2013-07-31 22:20:26 +0100
committerMichael Tokarev <mjt@tls.msk.ru>2013-08-02 18:02:48 +0400
commitf5075224d6e7fe8cae7e3c1b52a6d0f7bd3533d0 (patch)
tree0b278c7ec6dc2982edca7afe436d970e489c0003 /block/iscsi.c
parente8ef31a3518c7b1e63a804fe8cecd3e94418db84 (diff)
downloadqemu-f5075224d6e7fe8cae7e3c1b52a6d0f7bd3533d0.zip
qemu-f5075224d6e7fe8cae7e3c1b52a6d0f7bd3533d0.tar.gz
qemu-f5075224d6e7fe8cae7e3c1b52a6d0f7bd3533d0.tar.bz2
block/iscsi.c: Fix printf format error.
The error on armv7hl was: block/iscsi.c: In function ‘is_request_lun_aligned’: block/iscsi.c:251:26: error: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘int64_t’ [-Werror=format=] iscsilun->block_size, sector_num, nb_sectors); ^ This also splits the long line to comply with qemu coding guidelines. Signed-off-by: Richard W.M. Jones <rjones@redhat.com> Reviewed-by: Stefan Weil <sw@weilnetz.de> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'block/iscsi.c')
-rw-r--r--block/iscsi.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/block/iscsi.c b/block/iscsi.c
index 5f28c6a..e7c1c2b 100644
--- a/block/iscsi.c
+++ b/block/iscsi.c
@@ -247,7 +247,9 @@ static bool is_request_lun_aligned(int64_t sector_num, int nb_sectors,
{
if ((sector_num * BDRV_SECTOR_SIZE) % iscsilun->block_size ||
(nb_sectors * BDRV_SECTOR_SIZE) % iscsilun->block_size) {
- error_report("iSCSI misaligned request: iscsilun->block_size %u, sector_num %ld, nb_sectors %d",
+ error_report("iSCSI misaligned request: "
+ "iscsilun->block_size %u, sector_num %" PRIi64
+ ", nb_sectors %d",
iscsilun->block_size, sector_num, nb_sectors);
return 0;
}