diff options
| author | Avihai Horon <avihaih@nvidia.com> | 2023-03-07 12:54:37 +0000 |
|---|---|---|
| committer | Alex Williamson <alex.williamson@redhat.com> | 2023-03-07 07:20:32 -0700 |
| commit | db9b829b15999b47f3e4f6fbede743b6f8686110 (patch) | |
| tree | c7768757573bcef8d77d611843c1ed7788f08641 /scripts/probe-gdb-support.py | |
| parent | 3e2413a6520e5b6d8360395b6b423332abfb3362 (diff) | |
| download | focaccia-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/probe-gdb-support.py')
0 files changed, 0 insertions, 0 deletions