diff options
author | Markus Armbruster | 2019-01-11 20:14:01 +0100 |
---|---|---|
committer | Kevin Wolf | 2019-02-01 13:46:45 +0100 |
commit | 14632122b82150d42cefac04a219bbead59bc4a7 (patch) | |
tree | 53993ff87350059a20a3d8192026b273c0668dcc /tests | |
parent | block: Remove blk_attach_dev_legacy() / legacy_dev code (diff) | |
download | qemu-14632122b82150d42cefac04a219bbead59bc4a7.tar.gz qemu-14632122b82150d42cefac04a219bbead59bc4a7.tar.xz qemu-14632122b82150d42cefac04a219bbead59bc4a7.zip |
block: Eliminate the S_1KiB, S_2KiB, ... macros
We define 54 macros for the powers of two >= 1024. We use six, in six
macro definitions. Four of them could just as well use the common MiB
macro, so do that. The remaining two can't, because they get passed
to stringify. Replace the macro by the literal number there.
Slightly harder to read in one instance (1048576 vs. S_1MiB), so add a
comment there. The other instance is a wash: 65536 vs S_64KiB. 65536
has been good enough for more than seven years there.
This effectively reverts commit 540b8492618 and 1240ac558d3.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Alberto Garcia <berto@igalia.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions