diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2023-03-31 01:38:11 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2023-03-31 01:38:11 +0000 |
commit | ca35650de0066d2bc1dfbfeaba97589fe798ab77 (patch) | |
tree | 1a92fcbc0138b36b284428593b16d25e615ca165 /sys/dev/pci/drm/i915 | |
parent | c9e42a8cbb0fb67ec407784866285efd72afd071 (diff) |
drm/i915: Print return value on error
From Nirmoy Das
b6375c5ecd8c790e381ee3f9baeda8c9e5da4a45 in linux-6.1.y/6.1.22
20c68127e8e9d7899001c47465d0b79581f5fdc1 in mainline linux
Diffstat (limited to 'sys/dev/pci/drm/i915')
-rw-r--r-- | sys/dev/pci/drm/i915/display/intel_fbdev.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/drm/i915/display/intel_fbdev.c b/sys/dev/pci/drm/i915/display/intel_fbdev.c index e9794266ae3..de32600fd7a 100644 --- a/sys/dev/pci/drm/i915/display/intel_fbdev.c +++ b/sys/dev/pci/drm/i915/display/intel_fbdev.c @@ -179,7 +179,7 @@ static int intelfb_alloc(struct drm_fb_helper *helper, } if (IS_ERR(obj)) { - drm_err(&dev_priv->drm, "failed to allocate framebuffer\n"); + drm_err(&dev_priv->drm, "failed to allocate framebuffer (%pe)\n", obj); return PTR_ERR(obj); } @@ -260,7 +260,7 @@ static int intelfb_create(struct drm_fb_helper *helper, info = drm_fb_helper_alloc_fbi(helper); if (IS_ERR(info)) { - drm_err(&dev_priv->drm, "Failed to allocate fb_info\n"); + drm_err(&dev_priv->drm, "Failed to allocate fb_info (%pe)\n", info); ret = PTR_ERR(info); goto out_unpin; } @@ -296,7 +296,7 @@ static int intelfb_create(struct drm_fb_helper *helper, vaddr = i915_vma_pin_iomap(vma); if (IS_ERR(vaddr)) { drm_err(&dev_priv->drm, - "Failed to remap framebuffer into virtual memory\n"); + "Failed to remap framebuffer into virtual memory (%pe)\n", vaddr); ret = PTR_ERR(vaddr); goto out_unpin; } |