gfs2-utils: master - fsck.gfs2: Remove redundancy in add_duplicate_ref

Bob Peterson rpeterso at fedoraproject.org
Tue Sep 29 18:38:12 UTC 2015


Gitweb:        http://git.fedorahosted.org/git/?p=gfs2-utils.git;a=commitdiff;h=28a73aac8c060378553cd161222e30c5b8d40865
Commit:        28a73aac8c060378553cd161222e30c5b8d40865
Parent:        f2bef761d91128dcb586a2a67202cdc6ce646eed
Author:        Bob Peterson <rpeterso at redhat.com>
AuthorDate:    Wed Sep 23 15:11:53 2015 -0500
Committer:     Bob Peterson <rpeterso at redhat.com>
CommitterDate: Tue Sep 29 13:23:31 2015 -0500

fsck.gfs2: Remove redundancy in add_duplicate_ref

Before this patch, when a duplicate reference was added to the list,
function add_duplicate_ref would print out an info message that said:
This brings the total to: X duplicate references.
I found this message to be redundant and confusing. It's much more
clear to simply say:
This brings the total to: X references
---
 gfs2/fsck/util.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/gfs2/fsck/util.c b/gfs2/fsck/util.c
index a6a5cdc..b22abc6 100644
--- a/gfs2/fsck/util.c
+++ b/gfs2/fsck/util.c
@@ -402,8 +402,8 @@ int add_duplicate_ref(struct gfs2_inode *ip, uint64_t block,
 	if (first)
 		log_info( _("This is the original reference.\n"));
 	else
-		log_info( _("This brings the total to: %d duplicate "
-			    "references\n"), dt->refs);
+		log_info( _("This brings the total to: %d references\n"),
+			  dt->refs);
 	return meta_is_good;
 }
 


More information about the cluster-commits mailing list