diff options
author | Nick Andrew <nick@nick-andrew.net> | 2008-04-28 11:15:55 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-28 17:58:42 +0200 |
commit | d7a420c9472a95c46600a0345434b7b166e0b9c7 (patch) | |
tree | b95005ce8ab92efdb5cd04b3d85c3b01a0455ebc /drivers/md/raid5.c | |
parent | md: raid5.c convert simple_strtoul to strict_strtoul (diff) | |
download | linux-d7a420c9472a95c46600a0345434b7b166e0b9c7.tar.xz linux-d7a420c9472a95c46600a0345434b7b166e0b9c7.zip |
raid: remove leading TAB on printk messages
MD drivers use one printk() call to print 2 log messages and the second line
may be prefixed by a TAB character. It may also output a trailing space
before newline. klogd (I think) turns the TAB character into the 2 characters
'^I' when logging to a file. This looks ugly.
Instead of a leading TAB to indicate continuation, prefix both output lines
with 'raid:' or similar. Also remove any trailing space in the vicinity of
the affected code and consistently end the sentences with a period.
Signed-off-by: Nick Andrew <nick@nick-andrew.net>
Cc: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/md/raid5.c')
-rw-r--r-- | drivers/md/raid5.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c index 9bc603181bcb..968dacaced6d 100644 --- a/drivers/md/raid5.c +++ b/drivers/md/raid5.c @@ -1262,8 +1262,8 @@ static void error(mddev_t *mddev, mdk_rdev_t *rdev) } set_bit(Faulty, &rdev->flags); printk (KERN_ALERT - "raid5: Disk failure on %s, disabling device." - " Operation continuing on %d devices\n", + "raid5: Disk failure on %s, disabling device.\n" + "raid5: Operation continuing on %d devices.\n", bdevname(rdev->bdev,b), conf->raid_disks - mddev->degraded); } } |