diff options
author | Philippe Mathieu-Daudé <f4bug@amsat.org> | 2021-06-12 21:58:42 +0200 |
---|---|---|
committer | Thomas Huth <thuth@redhat.com> | 2021-06-21 05:50:57 +0200 |
commit | a8fbec7ed80f4cc7ffec87144a03d990ff8002ff (patch) | |
tree | 4401d511857e05fa01c87ce1515e1f1ad20b3b8c /tests | |
parent | e52ee00dab8678b26a5b7312275daa6ac4899046 (diff) | |
download | qemu-a8fbec7ed80f4cc7ffec87144a03d990ff8002ff.zip qemu-a8fbec7ed80f4cc7ffec87144a03d990ff8002ff.tar.gz qemu-a8fbec7ed80f4cc7ffec87144a03d990ff8002ff.tar.bz2 |
fuzz: Display hexadecimal value with '0x' prefix
Use memory_region_size() to get the MemoryRegion size,
and display it with the '0x' prefix.
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Alexander Bulekov <alxndr@bu.edu>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20210612195842.1595999-1-f4bug@amsat.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/qtest/fuzz/generic_fuzz.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/qtest/fuzz/generic_fuzz.c b/tests/qtest/fuzz/generic_fuzz.c index cea7d40..6c67522 100644 --- a/tests/qtest/fuzz/generic_fuzz.c +++ b/tests/qtest/fuzz/generic_fuzz.c @@ -841,9 +841,9 @@ static void generic_pre_fuzz(QTestState *s) g_hash_table_iter_init(&iter, fuzzable_memoryregions); while (g_hash_table_iter_next(&iter, (gpointer)&mr, NULL)) { - printf(" * %s (size %lx)\n", + printf(" * %s (size 0x%" PRIx64 ")\n", object_get_canonical_path_component(&(mr->parent_obj)), - (uint64_t)mr->size); + memory_region_size(mr)); } if (!g_hash_table_size(fuzzable_memoryregions)) { |