drm/amdgpu: fix typo for amdgpu ras error data print
authorYang Wang <kevinyang.wang@amd.com>
Thu, 19 Oct 2023 06:59:19 +0000 (14:59 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 20 Oct 2023 19:11:28 +0000 (15:11 -0400)
typo fix.

Fixes: 5b1270beb380 ("drm/amdgpu: add ras_err_info to identify RAS error source")
Signed-off-by: Yang Wang <kevinyang.wang@amd.com>
Reviewed-by: Candice Li <candice.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c

index b3c32c6..70dd249 100644 (file)
@@ -1038,7 +1038,7 @@ static void amdgpu_ras_error_print_error_data(struct amdgpu_device *adev,
                         ras_mgr->err_data.ue_count, blk_name);
        else
                dev_info(adev->dev, "%ld correctable hardware errors detected in %s block\n",
-                        ras_mgr->err_data.ue_count, blk_name);
+                        ras_mgr->err_data.ce_count, blk_name);
 
        for_each_ras_error(err_node, err_data) {
                err_info = &err_node->err_info;
@@ -1055,7 +1055,7 @@ static void amdgpu_ras_error_print_error_data(struct amdgpu_device *adev,
                                 "%lld correctable hardware errors detected in %s block\n",
                                 mcm_info->socket_id,
                                 mcm_info->die_id,
-                                err_info->ue_count,
+                                err_info->ce_count,
                                 blk_name);
                }
        }