Skip to content

Commit 7b03236

Browse files
superm1jenswi-linaro
authored andcommitted
amdtee: Use pr_fmt for messages
amd-tee inconsistently uses the word amd-tee in error messages. Add a `pr_fmt()` define and remove the hardcoded use of amd-tee. Also, remove the unnecessary driver init successful message because there will be a message if failed and a user can assume it was successful otherwise. Signed-off-by: Mario Limonciello <[email protected]> Reviewed-by: Sumit Garg <[email protected]> Signed-off-by: Jens Wiklander <[email protected]>
1 parent 8ffd015 commit 7b03236

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

drivers/tee/amdtee/core.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
* Copyright 2019 Advanced Micro Devices, Inc.
44
*/
55

6+
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
7+
68
#include <linux/errno.h>
79
#include <linux/io.h>
810
#include <linux/module.h>
@@ -458,7 +460,7 @@ static int __init amdtee_driver_init(void)
458460

459461
rc = psp_check_tee_status();
460462
if (rc) {
461-
pr_err("amd-tee driver: tee not present\n");
463+
pr_err("tee not present\n");
462464
return rc;
463465
}
464466

@@ -494,7 +496,6 @@ static int __init amdtee_driver_init(void)
494496

495497
drv_data->amdtee = amdtee;
496498

497-
pr_info("amd-tee driver initialization successful\n");
498499
return 0;
499500

500501
err_device_unregister:
@@ -510,7 +511,7 @@ static int __init amdtee_driver_init(void)
510511
kfree(drv_data);
511512
drv_data = NULL;
512513

513-
pr_err("amd-tee driver initialization failed\n");
514+
pr_err("initialization failed\n");
514515
return rc;
515516
}
516517
module_init(amdtee_driver_init);

0 commit comments

Comments
 (0)