diff mbox

[1/2] drm/i915/error: Use yesno() to report iommu enable status

Message ID 1470931741-20353-2-git-send-email-arun.siluvery@linux.intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

arun.siluvery@linux.intel.com Aug. 11, 2016, 4:09 p.m. UTC
Signed-off-by: Arun Siluvery <arun.siluvery@linux.intel.com>
---
 drivers/gpu/drm/i915/i915_gpu_error.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/drivers/gpu/drm/i915/i915_gpu_error.c b/drivers/gpu/drm/i915/i915_gpu_error.c
index eecb870..3209f6a 100644
--- a/drivers/gpu/drm/i915/i915_gpu_error.c
+++ b/drivers/gpu/drm/i915/i915_gpu_error.c
@@ -363,7 +363,7 @@  int i915_error_state_to_str(struct drm_i915_error_state_buf *m,
 	err_printf(m, "PCI Subsystem: %04x:%04x\n",
 		   dev->pdev->subsystem_vendor,
 		   dev->pdev->subsystem_device);
-	err_printf(m, "IOMMU enabled?: %d\n", error->iommu);
+	err_printf(m, "IOMMU enabled?: %s\n", yesno(error->iommu == 1));
 
 	if (HAS_CSR(dev)) {
 		struct intel_csr *csr = &dev_priv->csr;