diff options
author | NeilBrown <neilb@suse.de> | 2015-02-12 03:46:53 +0100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2015-02-12 03:46:53 +0100 |
commit | 7a862a020f04b10f17f6dcae23bf60c52cbe190b (patch) | |
tree | 8134a9a06b1aaaa1ee640b20f3b00e95755d4f49 /bitmap.c | |
parent | Consistently print program Name and __func__ in debug messages. (diff) | |
download | mdadm-7a862a020f04b10f17f6dcae23bf60c52cbe190b.tar.xz mdadm-7a862a020f04b10f17f6dcae23bf60c52cbe190b.zip |
Don't break long strings onto multiple lines.
It is best to keep strings all together so that they
are easier to search for in the source code.
If a string is so long that it looks ugly one line,
them maybe it should be broken into multiple lines
for display too.
Only strings which contain a newline can be broken
into multiple lines:
"It is OK to\n"
"break this string\n"
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'bitmap.c')
-rw-r--r-- | bitmap.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -140,8 +140,7 @@ bitmap_info_t *bitmap_fd_read(int fd, int brief) info = xmalloc(sizeof(*info)); if (n < sizeof(info->sb)) { - pr_err("failed to read superblock of bitmap " - "file: %s\n", strerror(errno)); + pr_err("failed to read superblock of bitmap file: %s\n", strerror(errno)); free(info); free(buf); return NULL; @@ -182,8 +181,7 @@ bitmap_info_t *bitmap_fd_read(int fd, int brief) } if (read_bits < total_bits) { /* file truncated... */ - pr_err("WARNING: bitmap file is not large " - "enough for array size %llu!\n\n", + pr_err("WARNING: bitmap file is not large enough for array size %llu!\n\n", (unsigned long long)info->sb.sync_size); total_bits = read_bits; } |