Commit 09edeb4c authored by Srinivasan Shanmugam's avatar Srinivasan Shanmugam Committed by Alex Deucher

drm/radeon: Prefer pr_err/_info over printk

Fixes the following checkpatch.pl:

WARNING: printk() should include KERN_<LEVEL> facility level

Cc: Christian König <christian.koenig@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarSrinivasan Shanmugam <srinivasan.shanmugam@amd.com>
Reviewed-by: default avatarGuchun Chen <guchun.chen@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 5dbb5924
...@@ -115,7 +115,7 @@ static union acpi_object *radeon_atpx_call(acpi_handle handle, int function, ...@@ -115,7 +115,7 @@ static union acpi_object *radeon_atpx_call(acpi_handle handle, int function,
/* Fail only if calling the method fails and ATPX is supported */ /* Fail only if calling the method fails and ATPX is supported */
if (ACPI_FAILURE(status) && status != AE_NOT_FOUND) { if (ACPI_FAILURE(status) && status != AE_NOT_FOUND) {
printk("failed to evaluate ATPX got %s\n", pr_err("failed to evaluate ATPX got %s\n",
acpi_format_exception(status)); acpi_format_exception(status));
kfree(buffer.pointer); kfree(buffer.pointer);
return NULL; return NULL;
...@@ -171,7 +171,7 @@ static int radeon_atpx_validate(struct radeon_atpx *atpx) ...@@ -171,7 +171,7 @@ static int radeon_atpx_validate(struct radeon_atpx *atpx)
size = *(u16 *) info->buffer.pointer; size = *(u16 *) info->buffer.pointer;
if (size < 10) { if (size < 10) {
printk("ATPX buffer is too small: %zu\n", size); pr_err("ATPX buffer is too small: %zu\n", size);
kfree(info); kfree(info);
return -EINVAL; return -EINVAL;
} }
...@@ -202,7 +202,7 @@ static int radeon_atpx_validate(struct radeon_atpx *atpx) ...@@ -202,7 +202,7 @@ static int radeon_atpx_validate(struct radeon_atpx *atpx)
atpx->is_hybrid = false; atpx->is_hybrid = false;
if (valid_bits & ATPX_MS_HYBRID_GFX_SUPPORTED) { if (valid_bits & ATPX_MS_HYBRID_GFX_SUPPORTED) {
printk("ATPX Hybrid Graphics\n"); pr_info("ATPX Hybrid Graphics\n");
/* /*
* Disable legacy PM methods only when pcie port PM is usable, * Disable legacy PM methods only when pcie port PM is usable,
* otherwise the device might fail to power off or power on. * otherwise the device might fail to power off or power on.
...@@ -239,7 +239,7 @@ static int radeon_atpx_verify_interface(struct radeon_atpx *atpx) ...@@ -239,7 +239,7 @@ static int radeon_atpx_verify_interface(struct radeon_atpx *atpx)
size = *(u16 *) info->buffer.pointer; size = *(u16 *) info->buffer.pointer;
if (size < 8) { if (size < 8) {
printk("ATPX buffer is too small: %zu\n", size); pr_err("ATPX buffer is too small: %zu\n", size);
err = -EINVAL; err = -EINVAL;
goto out; goto out;
} }
...@@ -248,7 +248,7 @@ static int radeon_atpx_verify_interface(struct radeon_atpx *atpx) ...@@ -248,7 +248,7 @@ static int radeon_atpx_verify_interface(struct radeon_atpx *atpx)
memcpy(&output, info->buffer.pointer, size); memcpy(&output, info->buffer.pointer, size);
/* TODO: check version? */ /* TODO: check version? */
printk("ATPX version %u, functions 0x%08x\n", pr_info("ATPX version %u, functions 0x%08x\n",
output.version, output.function_bits); output.version, output.function_bits);
radeon_atpx_parse_functions(&atpx->functions, output.function_bits); radeon_atpx_parse_functions(&atpx->functions, output.function_bits);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment