util/vfio-helpers: Convert vfio_dump_mapping to trace events
commitf6b8104d0b75a8c2b21bd3175e9ba9a402182b2e
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Tue, 3 Nov 2020 02:07:32 +0000 (3 03:07 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Tue, 3 Nov 2020 19:06:23 +0000 (3 19:06 +0000)
tree9a7d9b98080f891f552c9d2f30e23e32f0c02c0d
parent4c946b2236e630613fcb89516bf7fb2f918dc996
util/vfio-helpers: Convert vfio_dump_mapping to trace events

The QEMU_VFIO_DEBUG definition is only modifiable at build-time.
Trace events can be enabled at run-time. As we prefer the latter,
convert qemu_vfio_dump_mappings() to use trace events instead
of fprintf().

Reviewed-by: Fam Zheng <fam@euphon.net>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-id: 20201103020733.2303148-7-philmd@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Tested-by: Eric Auger <eric.auger@redhat.com>
util/trace-events
util/vfio-helpers.c