[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC 03/18] hw/vfio/pci: fix vfio_pci_hot_reset_result trace point
From: |
Yi Liu |
Subject: |
[RFC 03/18] hw/vfio/pci: fix vfio_pci_hot_reset_result trace point |
Date: |
Thu, 14 Apr 2022 03:46:55 -0700 |
From: Eric Auger <eric.auger@redhat.com>
Properly output the errno string.
Signed-off-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Yi Liu <yi.l.liu@intel.com>
---
hw/vfio/pci.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c
index 67a183f17b..e26e65bb1f 100644
--- a/hw/vfio/pci.c
+++ b/hw/vfio/pci.c
@@ -2337,7 +2337,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 */
--
2.27.0
- [RFC 00/18] vfio: Adopt iommufd, Yi Liu, 2022/04/14
- [RFC 01/18] scripts/update-linux-headers: Add iommufd.h, Yi Liu, 2022/04/14
- [RFC 03/18] hw/vfio/pci: fix vfio_pci_hot_reset_result trace point,
Yi Liu <=
- [RFC 02/18] linux-headers: Import latest vfio.h and iommufd.h, Yi Liu, 2022/04/14
- [RFC 04/18] vfio/pci: Use vbasedev local variable in vfio_realize(), Yi Liu, 2022/04/14
- [RFC 05/18] vfio/common: Rename VFIOGuestIOMMU::iommu into ::iommu_mr, Yi Liu, 2022/04/14
- [RFC 08/18] vfio/container: Introduce vfio_[attach/detach]_device, Yi Liu, 2022/04/14
- [RFC 06/18] vfio/common: Split common.c into common.c, container.c and as.c, Yi Liu, 2022/04/14
- [RFC 09/18] vfio/platform: Use vfio_[attach/detach]_device, Yi Liu, 2022/04/14
- [RFC 10/18] vfio/ap: Use vfio_[attach/detach]_device, Yi Liu, 2022/04/14
- [RFC 07/18] vfio: Add base object for VFIOContainer, Yi Liu, 2022/04/14
- [RFC 11/18] vfio/ccw: Use vfio_[attach/detach]_device, Yi Liu, 2022/04/14