]> Git Repo - qemu.git/commit
qemu-io: Improve alignment checks
authorEric Blake <[email protected]>
Sat, 29 Apr 2017 19:14:11 +0000 (14:14 -0500)
committerMax Reitz <[email protected]>
Thu, 11 May 2017 12:28:05 +0000 (14:28 +0200)
commit1bce6b4ce3ba03015bdf16d40c1bbe33d8b6031b
tree8db89eb24641d01b5a32c8af9456f929fcbfbdd2
parent698bdfa07d66b5ec218a60229e58eae1dcde00e5
qemu-io: Improve alignment checks

Several copy-and-pasted alignment checks exist in qemu-io, which
could use some minor improvements:

- Manual comparison against 0x1ff is not as clean as using our
alignment macros (QEMU_IS_ALIGNED) from osdep.h.

- The error messages aren't quite grammatically correct.

Suggested-by: Philippe Mathieu-Daudé <[email protected]>
Suggested-by: Max Reitz <[email protected]>
Signed-off-by: Eric Blake <[email protected]>
Message-id: 20170429191419[email protected]
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Max Reitz <[email protected]>
Signed-off-by: Max Reitz <[email protected]>
qemu-io-cmds.c
This page took 0.025369 seconds and 4 git commands to generate.