Skip to contentSkip to conversation

drm/amd/amdgpu: Add newlines in drm_dbg format strings

PATCH Applied Ed Maste 2 participants 2 messages Sep 28 – Sep 29

Subsystems (2)
lore
Share & tools
lore

Ed Maste

author
#0 lore raw

PATCH 1/1 drm/amd/amdgpu: Add newlines in drm_dbg format strings

From: 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
index 1e21e3444802..c283087bb560 100644
@@ -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
index 62f5c5cbd7f9..d23de711d8cf 100644
@@ -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
index 59ea338b554c..0a8dd7241750 100644
@@ -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
index 485ecdec9618..363266f3e0a3 100644
@@ -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
Reviewed-by on v1 1/1 Applied
#1 lore raw
Quoted 3 lines · Ed Maste

From: Ed Maste <[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
index 1e21e3444802..c283087bb560 100644
@@ -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
index 62f5c5cbd7f9..d23de711d8cf 100644
@@ -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
index 59ea338b554c..0a8dd7241750 100644
@@ -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
index 485ecdec9618..363266f3e0a3 100644
@@ -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;
  	}