drm/amd/amdgpu: Add newlines in drm_dbg format strings
Subsystems (2)
PATCH 1/1 drm/amd/amdgpu: Add newlines in drm_dbg format strings
From: Ed Maste <[email protected]>
Signed-off-by Ed Maste <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c | 2 +- drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 4 ++-- drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | 2 +- drivers/gpu/drm/amd/amdgpu/isp_v4_1_1.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c +1 -1
@@ -311,7 +311,7 @@ static int amdgpu_atomfirmware_get_uma_carveout_info_v2_3(struct amdgpu_device *if (nr_uma_options >MAX_UMA_OPTION_ENTRIES ) {drm_dbg (adev_to_drm (adev), -"Number of UMA options exceeds max table size. Options will not be parsed" ); +"Number of UMA options exceeds max table size. Options will not be parsed\n" );return -EINVAL ; }
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c +2 -2
@@ -720,13 +720,13 @@ static int amdgpu_discovery_init(struct amdgpu_device *adev)/* Read from file if it is the preferred option */ fw_name =amdgpu_discovery_get_fw_name (adev);if (fw_name !=NULL ) { -drm_dbg (&adev->ddev,"use ip discovery information from file" ); +drm_dbg (&adev->ddev,"use ip discovery information from file\n" ); r =amdgpu_discovery_read_binary_from_file (adev, discovery_bin, fw_name);if (r) goto out; }else { -drm_dbg (&adev->ddev,"use ip discovery information from memory" ); +drm_dbg (&adev->ddev,"use ip discovery information from memory\n" ); r =amdgpu_discovery_read_binary_from_mem (adev, discovery_bin, is_tmr_in_sysmem);if (r)
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +1 -1
@@ -1428,7 +1428,7 @@ static int amdgpu_display_framebuffer_init(struct drm_device *dev, ret =convert_tiling_flags_to_modifier_gfx6 (rfb);if (ret) { -drm_dbg_kms (dev,"Failed to convert tiling flags 0x%llX to a modifier" , +drm_dbg_kms (dev,"Failed to convert tiling flags 0x%llX to a modifier\n" , rfb->tiling_flags);return ret; }
drivers/gpu/drm/amd/amdgpu/isp_v4_1_1.c +1 -1
@@ -235,7 +235,7 @@ static int isp_v4_1_1_hw_init(struct amdgpu_isp *isp) r =amdgpu_acpi_get_isp4_dev (&acpi_dev);if (r) { -drm_dbg (&adev->ddev,"Invalid isp platform detected (%d)" , r); +drm_dbg (&adev->ddev,"Invalid isp platform detected (%d)\n" , r);/* allow GPU init to progress */ return 0 ; }
Signature · 1 line
2.55.0
Quoted 3 lines · Ed Maste
From: Ed Maste <[email protected]>
Signed-off-by Ed Maste <[email protected]>
Reviewed-by Mario Limonciello <[email protected]>
Applied to amd-staging-drm-next, thanks.
Quoted 66 lines
--- drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c | 2 +- drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 4 ++-- drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | 2 +- drivers/gpu/drm/amd/amdgpu/isp_v4_1_1.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-)drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c +1
-1@@ -311,7 +311,7 @@ static int amdgpu_atomfirmware_get_uma_carveout_info_v2_3(struct amdgpu_device *if (nr_uma_options >MAX_UMA_OPTION_ENTRIES ) {drm_dbg (adev_to_drm (adev), -"Number of UMA options exceeds max table size. Options will not be parsed" ); +"Number of UMA options exceeds max table size. Options will not be parsed\n" );return -EINVAL ; }drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c +2
-2@@ -720,13 +720,13 @@ static int amdgpu_discovery_init(struct amdgpu_device *adev)/* Read from file if it is the preferred option */ fw_name =amdgpu_discovery_get_fw_name (adev);if (fw_name !=NULL ) { -drm_dbg (&adev->ddev,"use ip discovery information from file" ); +drm_dbg (&adev->ddev,"use ip discovery information from file\n" ); r =amdgpu_discovery_read_binary_from_file (adev, discovery_bin, fw_name);if (r) goto out; }else { -drm_dbg (&adev->ddev,"use ip discovery information from memory" ); +drm_dbg (&adev->ddev,"use ip discovery information from memory\n" ); r =amdgpu_discovery_read_binary_from_mem (adev, discovery_bin, is_tmr_in_sysmem);if (r)drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +1
-1@@ -1428,7 +1428,7 @@ static int amdgpu_display_framebuffer_init(struct drm_device *dev, ret =convert_tiling_flags_to_modifier_gfx6 (rfb);if (ret) { -drm_dbg_kms (dev,"Failed to convert tiling flags 0x%llX to a modifier" , +drm_dbg_kms (dev,"Failed to convert tiling flags 0x%llX to a modifier\n" , rfb->tiling_flags);return ret; }drivers/gpu/drm/amd/amdgpu/isp_v4_1_1.c +1
-1@@ -235,7 +235,7 @@ static int isp_v4_1_1_hw_init(struct amdgpu_isp *isp) r =amdgpu_acpi_get_isp4_dev (&acpi_dev);if (r) { -drm_dbg (&adev->ddev,"Invalid isp platform detected (%d)" , r); +drm_dbg (&adev->ddev,"Invalid isp platform detected (%d)\n" , r);/* allow GPU init to progress */ return 0 ; }