mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-02 12:10:23 -04:00
drm/i915/guc: Print error name on CTB send failure
Instead of plain error value (%d) print more user friendly error name (%pe). Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Matt Roper <matthew.d.roper@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20210926184545.1407-4-michal.wajdeczko@intel.com
This commit is contained in:
committed by
Matt Roper
parent
0de9765da5
commit
0e9deac513
@@ -781,8 +781,8 @@ int intel_guc_ct_send(struct intel_guc_ct *ct, const u32 *action, u32 len,
|
||||
|
||||
ret = ct_send(ct, action, len, response_buf, response_buf_size, &status);
|
||||
if (unlikely(ret < 0)) {
|
||||
CT_ERROR(ct, "Sending action %#x failed (err=%d status=%#X)\n",
|
||||
action[0], ret, status);
|
||||
CT_ERROR(ct, "Sending action %#x failed (%pe) status=%#X\n",
|
||||
action[0], ERR_PTR(ret), status);
|
||||
} else if (unlikely(ret)) {
|
||||
CT_DEBUG(ct, "send action %#x returned %d (%#x)\n",
|
||||
action[0], ret, ret);
|
||||
|
||||
Reference in New Issue
Block a user