Skip to content

Commit

Permalink
drm/xe/guc: Improve GuC doorbell/context ID manager intro message
Browse files Browse the repository at this point in the history
We can use recently added str_plural() helper.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Reviewed-by: Piotr Piórkowski <piotr.piorkowski@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240419153407.402-1-michal.wajdeczko@intel.com
  • Loading branch information
Michal Wajdeczko committed Apr 24, 2024
1 parent 6b8ef44 commit ad4ca91
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion drivers/gpu/drm/xe/xe_guc_db_mgr.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ int xe_guc_db_mgr_init(struct xe_guc_db_mgr *dbm, unsigned int count)
if (ret)
return ret;
done:
xe_gt_dbg(dbm_to_gt(dbm), "using %u doorbell(s)\n", dbm->count);
xe_gt_dbg(dbm_to_gt(dbm), "using %u doorbell%s\n",
dbm->count, str_plural(dbm->count));
return 0;
}

Expand Down
3 changes: 2 additions & 1 deletion drivers/gpu/drm/xe/xe_guc_id_mgr.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ int xe_guc_id_mgr_init(struct xe_guc_id_mgr *idm, unsigned int limit)
if (ret)
return ret;

xe_gt_info(idm_to_gt(idm), "using %u GUC ID(s)\n", idm->total);
xe_gt_info(idm_to_gt(idm), "using %u GUC ID%s\n",
idm->total, str_plural(idm->total));
return 0;
}

Expand Down

0 comments on commit ad4ca91

Please sign in to comment.