mirror of
https://github.com/torvalds/linux.git
synced 2026-09-22 12:44:03 +02:00
drm/xe/guc: fix activity stats error message format
Use ERR_PTR() to print the error code symbolically. This makes the failure easier to spot from IGT, e.g. when the device is wedged. Signed-off-by: Sk Anirban <sk.anirban@intel.com> Reviewed-by: Matthew Brost <matthew.brost@intel.com> Signed-off-by: Matthew Brost <matthew.brost@intel.com> Link: https://patch.msgid.link/20260624194618.2793571-6-sk.anirban@intel.com
This commit is contained in:
parent
50fa9acac2
commit
d72d2706b2
|
|
@ -473,7 +473,7 @@ void xe_guc_engine_activity_enable_stats(struct xe_guc *guc)
|
|||
|
||||
ret = enable_engine_activity_stats(guc);
|
||||
if (ret)
|
||||
xe_gt_err(guc_to_gt(guc), "failed to enable activity stats%d\n", ret);
|
||||
xe_gt_err(guc_to_gt(guc), "failed to enable activity stats: %pe\n", ERR_PTR(ret));
|
||||
else
|
||||
engine_activity_set_cpu_ts(guc, 0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user