lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Mon, 19 Sep 2022 10:07:59 +0800
From:   Jiangshan Yi <13667453960@....com>
To:     dushistov@...l.ru
Cc:     akpm@...ux-foundation.org, linux-kernel@...r.kernel.org,
        Jiangshan Yi <yijiangshan@...inos.cn>
Subject: [PATCH] fs/ufs/super.c: use __func__ instead of function name

From: Jiangshan Yi <yijiangshan@...inos.cn>

It is better to use __func__ instead of function name.

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

Powered by blists - more mailing lists