[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 09/11] hw/vfio/pci: fix vfio_pci_hot_reset_result trace point
From: |
Alex Williamson |
Subject: |
[PULL 09/11] hw/vfio/pci: fix vfio_pci_hot_reset_result trace point |
Date: |
Fri, 06 May 2022 14:48:55 -0600 |
User-agent: |
StGit/1.0-8-g6af9-dirty |
From: Eric Auger <eric.auger@redhat.com>
"%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: 20220502094223.36384-2-yi.l.liu@intel.com">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>
---
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 ef9d7bf326de..cb912bd3f4b2 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 */
- [PULL 02/11] vfio: move re-enabling INTX out of the common helper, (continued)
- [PULL 02/11] vfio: move re-enabling INTX out of the common helper, Alex Williamson, 2022/05/06
- [PULL 03/11] vfio: simplify the failure path in vfio_msi_enable, Alex Williamson, 2022/05/06
- [PULL 04/11] Revert "vfio: Avoid disabling and enabling vectors repeatedly in VFIO migration", Alex Williamson, 2022/05/06
- [PULL 05/11] vfio: defer to commit kvm irq routing when enable msi/msix, Alex Williamson, 2022/05/06
- [PULL 06/11] vfio/common: Fix a small boundary issue of a trace, Alex Williamson, 2022/05/06
- [PULL 07/11] sysemu: tpm: Add a stub function for TPM_IS_CRB, Alex Williamson, 2022/05/06
- [PULL 08/11] vfio/common: remove spurious tpm-crb-cmd misalignment warning, Alex Williamson, 2022/05/06
- [PULL 09/11] hw/vfio/pci: fix vfio_pci_hot_reset_result trace point,
Alex Williamson <=
- [PULL 10/11] vfio/pci: Use vbasedev local variable in vfio_realize(), Alex Williamson, 2022/05/06
- [PULL 11/11] vfio/common: Rename VFIOGuestIOMMU::iommu into ::iommu_mr, Alex Williamson, 2022/05/06
- Re: [PULL 00/11] Series short description, Richard Henderson, 2022/05/06