]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/xe/guc: Improve GuC doorbell/context ID manager intro message
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Fri, 19 Apr 2024 15:34:07 +0000 (17:34 +0200)
committerMichal Wajdeczko <michal.wajdeczko@intel.com>
Wed, 24 Apr 2024 16:18:02 +0000 (18:18 +0200)
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
drivers/gpu/drm/xe/xe_guc_db_mgr.c
drivers/gpu/drm/xe/xe_guc_id_mgr.c

index 8d9a0287df6b9b4d047e532c2bdb9891270ac8a8..6767e8076e6b4391b39fae358c3e8fc94975a1f8 100644 (file)
@@ -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;
 }
 
index 0fb7c6b78c31e9995f473d517daccf72b849df73..cd0549d0ef89a26573ea7f11698685ef43571ac3 100644 (file)
@@ -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;
 }