[PATCH] fs/ufs/super.c: use __func__ instead of function name

Jiangshan Yi posted 1 patch 3 years, 6 months ago
fs/ufs/super.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
[PATCH] fs/ufs/super.c: use __func__ instead of function name
Posted by Jiangshan Yi 3 years, 6 months ago
From: Jiangshan Yi <yijiangshan@kylinos.cn>

It is better to use __func__ instead of function name.

Signed-off-by: Jiangshan Yi <yijiangshan@kylinos.cn>
---
 fs/ufs/super.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/ufs/super.c b/fs/ufs/super.c
index 23377c1baed9..87752e5dfd2a 100644
--- a/fs/ufs/super.c
+++ b/fs/ufs/super.c
@@ -153,7 +153,7 @@ static void ufs_print_super_stuff(struct super_block *sb,
 {
 	u32 magic = fs32_to_cpu(sb, usb3->fs_magic);
 
-	pr_debug("ufs_print_super_stuff\n");
+	pr_debug("%s\n", __func__);
 	pr_debug("  magic:     0x%x\n", magic);
 	if (fs32_to_cpu(sb, usb3->fs_magic) == UFS2_MAGIC) {
 		pr_debug("  fs_size:   %llu\n", (unsigned long long)
@@ -228,7 +228,7 @@ static void ufs_print_super_stuff(struct super_block *sb,
 static void ufs_print_cylinder_stuff(struct super_block *sb,
 				     struct ufs_cylinder_group *cg)
 {
-	pr_debug("\nufs_print_cylinder_stuff\n");
+	pr_debug("\n%s\n", __func__);
 	pr_debug("size of ucg: %zu\n", sizeof(struct ufs_cylinder_group));
 	pr_debug("  magic:        %x\n", fs32_to_cpu(sb, cg->cg_magic));
 	pr_debug("  time:         %u\n", fs32_to_cpu(sb, cg->cg_time));
-- 
2.27.0


No virus found
		Checked by Hillstone Network AntiVirus