diff options
author | Bjorn Helgaas | 2019-03-30 15:41:35 +0100 |
---|---|---|
committer | Alex Williamson | 2019-04-22 19:45:42 +0200 |
commit | a88a7b3eb076ade6205176915fd2ee73a60f4a32 (patch) | |
tree | 27517aa02ee5bef7c0c3b17f56c168dde35bf3e0 /drivers/vfio/platform/reset | |
parent | Linux 5.1-rc6 (diff) | |
download | kernel-qcow2-linux-a88a7b3eb076ade6205176915fd2ee73a60f4a32.tar.gz kernel-qcow2-linux-a88a7b3eb076ade6205176915fd2ee73a60f4a32.tar.xz kernel-qcow2-linux-a88a7b3eb076ade6205176915fd2ee73a60f4a32.zip |
vfio: Use dev_printk() when possible
Use dev_printk() when possible to make messages consistent with other
device-related messages.
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'drivers/vfio/platform/reset')
-rw-r--r-- | drivers/vfio/platform/reset/vfio_platform_amdxgbe.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/vfio/platform/reset/vfio_platform_amdxgbe.c b/drivers/vfio/platform/reset/vfio_platform_amdxgbe.c index 3ddb2704221d..fe95964bc3be 100644 --- a/drivers/vfio/platform/reset/vfio_platform_amdxgbe.c +++ b/drivers/vfio/platform/reset/vfio_platform_amdxgbe.c @@ -89,7 +89,8 @@ static int vfio_platform_amdxgbe_reset(struct vfio_platform_device *vdev) } while ((pcs_value & MDIO_CTRL1_RESET) && --count); if (pcs_value & MDIO_CTRL1_RESET) - pr_warn("%s XGBE PHY reset timeout\n", __func__); + dev_warn(vdev->device, "%s: XGBE PHY reset timeout\n", + __func__); /* disable auto-negotiation */ value = xmdio_read(xpcs_regs->ioaddr, MDIO_MMD_AN, MDIO_CTRL1); @@ -114,7 +115,7 @@ static int vfio_platform_amdxgbe_reset(struct vfio_platform_device *vdev) usleep_range(500, 600); if (!count) - pr_warn("%s MAC SW reset failed\n", __func__); + dev_warn(vdev->device, "%s: MAC SW reset failed\n", __func__); return 0; } |