[PATCH] erofs-utils: remove duplicate __func__ print

Huang Jianan huangjianan at oppo.com
Tue Apr 20 21:52:37 AEST 2021


__func__ has been printed in the macro definition of erofs_err.

Signed-off-by: Huang Jianan <huangjianan at oppo.com>
---
 lib/inode.c | 4 ++--
 lib/xattr.c | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/lib/inode.c b/lib/inode.c
index 40189fe..b964b98 100644
--- a/lib/inode.c
+++ b/lib/inode.c
@@ -956,8 +956,8 @@ struct erofs_inode *erofs_mkfs_build_tree(struct erofs_inode *dir)
 
 	_dir = opendir(dir->i_srcpath);
 	if (!_dir) {
-		erofs_err("%s, failed to opendir at %s: %s",
-			  __func__, dir->i_srcpath, erofs_strerror(errno));
+		erofs_err("failed to opendir at %s: %s",
+			  dir->i_srcpath, erofs_strerror(errno));
 		return ERR_PTR(-errno);
 	}
 
diff --git a/lib/xattr.c b/lib/xattr.c
index 8b7bcb1..a7677b9 100644
--- a/lib/xattr.c
+++ b/lib/xattr.c
@@ -446,8 +446,8 @@ static int erofs_count_all_xattrs_from_path(const char *path)
 
 	_dir = opendir(path);
 	if (!_dir) {
-		erofs_err("%s, failed to opendir at %s: %s",
-			  __func__, path, erofs_strerror(errno));
+		erofs_err("failed to opendir at %s: %s",
+			  path, erofs_strerror(errno));
 		return -errno;
 	}
 
-- 
2.25.1



More information about the Linux-erofs mailing list