aboutsummaryrefslogtreecommitdiff
path: root/hw/vfio
diff options
context:
space:
mode:
authorEric Auger <eric.auger@redhat.com>2022-05-02 02:42:21 -0700
committerAlex Williamson <alex.williamson@redhat.com>2022-05-06 09:06:50 -0600
commit9d38ffc5d82839cdc9effb2e9ee84a6941a25e1a (patch)
tree56e6d683f55486b0cb44601b14b7c381b4e0d014 /hw/vfio
parent851d6d1a0ff29a87ec588205842edf6b86d99b5c (diff)
downloadqemu-9d38ffc5d82839cdc9effb2e9ee84a6941a25e1a.zip
qemu-9d38ffc5d82839cdc9effb2e9ee84a6941a25e1a.tar.gz
qemu-9d38ffc5d82839cdc9effb2e9ee84a6941a25e1a.tar.bz2
hw/vfio/pci: fix vfio_pci_hot_reset_result trace point
"%m" format specifier is not interpreted by the trace infrastructure and thus "%m" is output instead of the actual errno string. Fix it by outputting strerror(errno). Signed-off-by: Eric Auger <eric.auger@redhat.com> Signed-off-by: Yi Liu <yi.l.liu@intel.com> Link: https://lore.kernel.org/r/20220502094223.36384-2-yi.l.liu@intel.com [aw: replace commit log as provided by Eric] Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'hw/vfio')
-rw-r--r--hw/vfio/pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c
index ef9d7bf..cb912bd 100644
--- a/hw/vfio/pci.c
+++ b/hw/vfio/pci.c
@@ -2380,7 +2380,7 @@ static int vfio_pci_hot_reset(VFIOPCIDevice *vdev, bool single)
g_free(reset);
trace_vfio_pci_hot_reset_result(vdev->vbasedev.name,
- ret ? "%m" : "Success");
+ ret ? strerror(errno) : "Success");
out:
/* Re-enable INTx on affected devices */