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

From: Jiangshan Yi
Date: Sun Sep 18 2022 - 22:09:01 EST


From: Jiangshan Yi <yijiangshan@xxxxxxxxxx>

It is better to use __func__ instead of function name.

Signed-off-by: Jiangshan Yi <yijiangshan@xxxxxxxxxx>
---
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