* [PATCH] fuzz: Display hexadecimal value with '0x' prefix
@ 2021-06-12 15:00 Philippe Mathieu-Daudé
2021-06-12 16:15 ` Laurent Vivier
0 siblings, 1 reply; 3+ messages in thread
From: Philippe Mathieu-Daudé @ 2021-06-12 15:00 UTC (permalink / raw)
To: qemu-devel
Cc: Laurent Vivier, Thomas Huth, qemu-trivial,
Philippe Mathieu-Daudé, Alexander Bulekov, Bandan Das,
Stefan Hajnoczi, Paolo Bonzini
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
tests/qtest/fuzz/generic_fuzz.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/qtest/fuzz/generic_fuzz.c b/tests/qtest/fuzz/generic_fuzz.c
index cea7d4058e8..1307299df52 100644
--- a/tests/qtest/fuzz/generic_fuzz.c
+++ b/tests/qtest/fuzz/generic_fuzz.c
@@ -841,7 +841,7 @@ 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%lx)\n",
object_get_canonical_path_component(&(mr->parent_obj)),
(uint64_t)mr->size);
}
--
2.31.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] fuzz: Display hexadecimal value with '0x' prefix
2021-06-12 15:00 [PATCH] fuzz: Display hexadecimal value with '0x' prefix Philippe Mathieu-Daudé
@ 2021-06-12 16:15 ` Laurent Vivier
2021-06-12 16:31 ` Philippe Mathieu-Daudé
0 siblings, 1 reply; 3+ messages in thread
From: Laurent Vivier @ 2021-06-12 16:15 UTC (permalink / raw)
To: Philippe Mathieu-Daudé, qemu-devel
Cc: Laurent Vivier, Thomas Huth, qemu-trivial, Alexander Bulekov,
Bandan Das, Stefan Hajnoczi, Paolo Bonzini
Le 12/06/2021 à 17:00, Philippe Mathieu-Daudé a écrit :
> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
> ---
> tests/qtest/fuzz/generic_fuzz.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tests/qtest/fuzz/generic_fuzz.c b/tests/qtest/fuzz/generic_fuzz.c
> index cea7d4058e8..1307299df52 100644
> --- a/tests/qtest/fuzz/generic_fuzz.c
> +++ b/tests/qtest/fuzz/generic_fuzz.c
> @@ -841,7 +841,7 @@ 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%lx)\n",
> object_get_canonical_path_component(&(mr->parent_obj)),
> (uint64_t)mr->size);
> }
>
What about a "0x%"PRIx64 ?
Thanks,
Laurent
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] fuzz: Display hexadecimal value with '0x' prefix
2021-06-12 16:15 ` Laurent Vivier
@ 2021-06-12 16:31 ` Philippe Mathieu-Daudé
0 siblings, 0 replies; 3+ messages in thread
From: Philippe Mathieu-Daudé @ 2021-06-12 16:31 UTC (permalink / raw)
To: Laurent Vivier
Cc: Laurent Vivier, Thomas Huth, QEMU Trivial,
qemu-devel@nongnu.org Developers, Alexander Bulekov, Bandan Das,
Stefan Hajnoczi, Paolo Bonzini
On Sat, Jun 12, 2021 at 6:16 PM Laurent Vivier <laurent@vivier.eu> wrote:
>
> Le 12/06/2021 à 17:00, Philippe Mathieu-Daudé a écrit :
> > Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
> > ---
> > tests/qtest/fuzz/generic_fuzz.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/tests/qtest/fuzz/generic_fuzz.c b/tests/qtest/fuzz/generic_fuzz.c
> > index cea7d4058e8..1307299df52 100644
> > --- a/tests/qtest/fuzz/generic_fuzz.c
> > +++ b/tests/qtest/fuzz/generic_fuzz.c
> > @@ -841,7 +841,7 @@ 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%lx)\n",
> > object_get_canonical_path_component(&(mr->parent_obj)),
> > (uint64_t)mr->size);
> > }
> >
>
> What about a "0x%"PRIx64 ?
Ah, I only looked at the format. Even better: also use memory_region_size().
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-06-12 16:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-12 15:00 [PATCH] fuzz: Display hexadecimal value with '0x' prefix Philippe Mathieu-Daudé
2021-06-12 16:15 ` Laurent Vivier
2021-06-12 16:31 ` Philippe Mathieu-Daudé
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.