mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Salah Triki <salah.triki@acm.org>
To: akpm@linux-foundation.org, joe@perches.com
Cc: Salah Triki <salah.triki@acm.org>, linux-kernel@vger.kernel.org
Subject: [PATCH V4 6/6] fs: befs: Coalesce format in log messages
Date: Thu, 26 May 2016 02:41:39 +0100	[thread overview]
Message-ID: <3e45a15208e86abd84f459cdc98e5304e9739ad4.1464226521.git.salah.triki@acm.org> (raw)
In-Reply-To: <ed41da113fc693c7daa4e8813ca04cc766ddfc05.1464226521.git.salah.triki@acm.org>
In-Reply-To: <e6d03cbc9542495dc6174b59e32fcd41c1393cfc.1464226521.git.salah.triki@acm.org>

Coalese format is more readable, even if it goes over 80 column width,
so group format snippets together.

Signed-off-by: Salah Triki <salah.triki@acm.org>
---
 fs/befs/linuxvfs.c | 21 +++++++--------------
 1 file changed, 7 insertions(+), 14 deletions(-)

diff --git a/fs/befs/linuxvfs.c b/fs/befs/linuxvfs.c
index c734f21..74b377a 100644
--- a/fs/befs/linuxvfs.c
+++ b/fs/befs/linuxvfs.c
@@ -683,8 +683,7 @@ parse_options(char *options, struct befs_mount_options *opts)
 			if (option >= 0)
 				uid = make_kuid(current_user_ns(), option);
 			if (!uid_valid(uid)) {
-				pr_err("Invalid uid %d, "
-				       "using default\n", option);
+				pr_err("Invalid uid %d, using default\n", option);
 				break;
 			}
 			opts->uid = uid;
@@ -697,8 +696,7 @@ parse_options(char *options, struct befs_mount_options *opts)
 			if (option >= 0)
 				gid = make_kgid(current_user_ns(), option);
 			if (!gid_valid(gid)) {
-				pr_err("Invalid gid %d, "
-				       "using default\n", option);
+				pr_err("Invalid gid %d, using default\n", option);
 				break;
 			}
 			opts->gid = gid;
@@ -708,8 +706,7 @@ parse_options(char *options, struct befs_mount_options *opts)
 			kfree(opts->iocharset);
 			opts->iocharset = match_strdup(&args[0]);
 			if (!opts->iocharset) {
-				pr_err("allocation failure for "
-				       "iocharset string\n");
+				pr_err("allocation failure for iocharset string\n");
 				return 0;
 			}
 			break;
@@ -717,8 +714,7 @@ parse_options(char *options, struct befs_mount_options *opts)
 			opts->debug = 1;
 			break;
 		default:
-			pr_err("Unrecognized mount option \"%s\" "
-			       "or missing value\n", p);
+			pr_err("Unrecognized mount option \"%s\" or missing value\n", p);
 			return 0;
 		}
 	}
@@ -774,8 +770,7 @@ befs_fill_super(struct super_block *sb, void *data, int silent)
 	befs_debug(sb, "---> %s", __func__);
 
 	if (!(sb->s_flags & MS_RDONLY)) {
-		befs_warning(sb,
-			     "No write support. Marking filesystem read-only");
+		befs_warning(sb, "No write support. Marking filesystem read-only");
 		sb->s_flags |= MS_RDONLY;
 	}
 
@@ -844,12 +839,10 @@ befs_fill_super(struct super_block *sb, void *data, int silent)
 
 	/* load nls library */
 	if (befs_sb->mount_opts.iocharset) {
-		befs_debug(sb, "Loading nls: %s",
-			   befs_sb->mount_opts.iocharset);
+		befs_debug(sb, "Loading nls: %s", befs_sb->mount_opts.iocharset);
 		befs_sb->nls = load_nls(befs_sb->mount_opts.iocharset);
 		if (!befs_sb->nls) {
-			befs_warning(sb, "Cannot load nls %s"
-					" loading default nls",
+			befs_warning(sb, "Cannot load nls %s loading default nls",
 					befs_sb->mount_opts.iocharset);
 			befs_sb->nls = load_nls_default();
 		}
-- 
1.9.1

      reply	other threads:[~2016-05-26  1:42 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-26  1:41 [PATCH V4 1/6] fs: befs: Move useless assignment Salah Triki
2016-05-26  1:41 ` [PATCH V4 2/6] fs: befs: Check silent flag before logging errors Salah Triki
2016-05-26  1:41   ` [PATCH V4 3/6] fs: befs: Remove useless pr_err Salah Triki
2016-05-26  1:41     ` [PATCH V4 4/6] fs: befs: Remove useless befs_error Salah Triki
2016-05-26  1:41       ` [PATCH V4 5/6] fs: befs: Remove useless pr_err Salah Triki
2016-05-26  1:41         ` Salah Triki [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3e45a15208e86abd84f459cdc98e5304e9739ad4.1464226521.git.salah.triki@acm.org \
    --to=salah.triki@acm.org \
    --cc=akpm@linux-foundation.org \
    --cc=joe@perches.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®