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:
parent
0de9765da5
commit
0e9deac513
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue