Skip to content

Commit

Permalink
drm/amd/display: Fix spelling mistakes of function name in error message
Browse files Browse the repository at this point in the history
The function name is being reported as dc_link_contruct when it is
actually dc_link_construct_phy. Fix this by using %s and the __func__
for the function name.

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
  • Loading branch information
Colin Ian King authored and Alex Deucher committed Feb 9, 2023
1 parent e1ebbf5 commit 09efa4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/gpu/drm/amd/display/dc/link/link_factory.c
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ static bool dc_link_construct_phy(struct dc_link *link,
link->psr_settings.psr_vtotal_control_support = false;
link->psr_settings.psr_version = DC_PSR_VERSION_UNSUPPORTED;

DC_LOG_DC("BIOS object table - dc_link_contruct finished successfully.\n");
DC_LOG_DC("BIOS object table - %s finished successfully.\n", __func__);
return true;
device_tag_fail:
link->link_enc->funcs->destroy(&link->link_enc);
Expand All @@ -469,7 +469,7 @@ static bool dc_link_construct_phy(struct dc_link *link,
link->hpd_gpio = NULL;
}

DC_LOG_DC("BIOS object table - dc_link_contruct failed.\n");
DC_LOG_DC("BIOS object table - %s failed.\n", __func__);
return false;
}

Expand Down

0 comments on commit 09efa4a

Please sign in to comment.