FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Cluster Development

 
 
LinkBack Thread Tools
 
Old 11-01-2011, 03:21 PM
Carlos Maiolino
 
Default fsck: Merge strings

This patch just change some log_error calls in a way the strings can be
merged during the i18n translations, removing the amount of duplicated
work to translators

Signed-off-by: Carlos Maiolino <cmaiolino@redhat.com>
---
gfs2/fsck/fs_recovery.c | 12 +++++-------
1 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/gfs2/fsck/fs_recovery.c b/gfs2/fsck/fs_recovery.c
index 8c3062b..1d9f632 100644
--- a/gfs2/fsck/fs_recovery.c
+++ b/gfs2/fsck/fs_recovery.c
@@ -456,9 +456,8 @@ static int gfs2_recover_journal(struct gfs2_inode *ip, int j, int preen,
error = gfs2_find_jhead(ip, &head);
if (error) {
if (opts.no) {
- log_err( _("Journal #%d ("journal%d") is corrupt.
"
- "Not fixing it due to the -n option.
"),
- j+1, j);
+ log_err( _("Journal #%d ("journal%d") is corrupt
"),j+1, j);
+ log_err( _("Not fixing it due to the -n option.
"));
goto out;
}
if (!preen_is_safe(sdp, preen, force_check)) {
@@ -501,13 +500,12 @@ static int gfs2_recover_journal(struct gfs2_inode *ip, int j, int preen,
return 0;
}
if (opts.no) {
- log_err(_("Journal #%d ("journal%d") is dirty; not replaying"
- " due to the -n option.
"),
- j+1, j);
+ log_err(_("Journal #%d ("journal%d") is dirty
"),j+1, j);
+ log_err(_("not replaying due to the -n option.
"));
goto out;
}
if (!preen_is_safe(sdp, preen, force_check)) {
- log_err( _("Journal #%d ("journal%d") is dirty.
"), j+1, j);
+ log_err( _("Journal #%d ("journal%d") is dirty
"), j+1, j);
log_err( _("I'm not replaying it because it may be unsafe:
"
"Locking protocol is not lock_nolock and "
"the -a or -p option was specified.
"));
--
1.7.6.4
 

Thread Tools




All times are GMT. The time now is 07:40 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org