summary refs log tree commit diff stats
path: root/scripts/qapi/parser.py
diff options
context:
space:
mode:
authorAvihai Horon <avihaih@nvidia.com>2023-03-07 12:54:37 +0000
committerAlex Williamson <alex.williamson@redhat.com>2023-03-07 07:20:32 -0700
commitdb9b829b15999b47f3e4f6fbede743b6f8686110 (patch)
treec7768757573bcef8d77d611843c1ed7788f08641 /scripts/qapi/parser.py
parent3e2413a6520e5b6d8360395b6b423332abfb3362 (diff)
downloadfocaccia-qemu-db9b829b15999b47f3e4f6fbede743b6f8686110.tar.gz
focaccia-qemu-db9b829b15999b47f3e4f6fbede743b6f8686110.zip
vfio/common: Fix wrong %m usages
There are several places where the %m conversion is used if one of
vfio_dma_map(), vfio_dma_unmap() or vfio_get_dirty_bitmap() fail.

The %m usage in these places is wrong since %m relies on errno value while
the above functions don't report errors via errno.

Fix it by using strerror() with the returned value instead.

Signed-off-by: Avihai Horon <avihaih@nvidia.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Link: https://lore.kernel.org/r/20230307125450.62409-3-joao.m.martins@oracle.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'scripts/qapi/parser.py')
0 files changed, 0 insertions, 0 deletions