Gitweb: http://git.fedorahosted.org/git/?p=gfs2-utils.git;a=commitdiff;h=824fe89669e... Commit: 824fe89669e6854b9c3d8ad94975f0801c118044 Parent: 26255a8ce1999ede7d06663e482fe974b6faaa7d Author: Bob Peterson rpeterso@redhat.com AuthorDate: Wed Mar 6 10:29:38 2013 -0700 Committer: Bob Peterson rpeterso@redhat.com CommitterDate: Mon May 20 11:12:45 2013 -0500
fsck.gfs2: shorten some debug messages in lost+found
This patch changes the debug output of lost+found such that it only prints the block number in hexadecimal. This shortens the output and makes debug output easier to read. --- gfs2/fsck/lost_n_found.c | 12 ++++-------- 1 files changed, 4 insertions(+), 8 deletions(-)
diff --git a/gfs2/fsck/lost_n_found.c b/gfs2/fsck/lost_n_found.c index 3d9acb5..3226ac9 100644 --- a/gfs2/fsck/lost_n_found.c +++ b/gfs2/fsck/lost_n_found.c @@ -34,11 +34,9 @@ static void add_dotdot(struct gfs2_inode *ip) if (di && valid_block(sdp, di->dotdot_parent.no_addr)) { struct gfs2_inode *dip;
- log_debug(_("Directory %lld (0x%llx) already had a " - "".." link to %lld (0x%llx).\n"), + log_debug(_("Directory (0x%llx) already had a " + "".." link to (0x%llx).\n"), (unsigned long long)ip->i_di.di_num.no_addr, - (unsigned long long)ip->i_di.di_num.no_addr, - (unsigned long long)di->dotdot_parent.no_addr, (unsigned long long)di->dotdot_parent.no_addr); dip = fsck_load_inode(sdp, di->dotdot_parent.no_addr); if (dip->i_di.di_num.no_formal_ino == @@ -76,15 +74,13 @@ static void add_dotdot(struct gfs2_inode *ip) } else { if (di) log_debug(_("Couldn't find a valid ".." entry " - "for orphan directory %lld (0x%llx): " + "for orphan directory (0x%llx): " "'..' = 0x%llx\n"), (unsigned long long)ip->i_di.di_num.no_addr, - (unsigned long long)ip->i_di.di_num.no_addr, (unsigned long long)di->dotdot_parent.no_addr); else - log_debug(_("Couldn't find directory %lld (0x%llx) " + log_debug(_("Couldn't find directory (0x%llx) " "in directory tree.\n"), - (unsigned long long)ip->i_di.di_num.no_addr, (unsigned long long)ip->i_di.di_num.no_addr); } if (gfs2_dirent_del(ip, "..", 2))
cluster-commits@lists.fedorahosted.org