diff options
author | Joe Perches <joe@perches.com> | 2011-01-13 17:14:33 -0500 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2011-01-13 17:14:33 -0500 |
commit | 067032bc628598606056412594042564fcf09e22 (patch) | |
tree | 5e64b6446c2156631cc66f34330ba7b134a451bf /drivers/md | |
parent | 6c9879101442b08581e8a0e3ae6b7f643a78fd63 (diff) |
md: Fix single printks with multiple KERN_<level>s
Noticed-by: Russell King <linux@arm.linux.org.uk>
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md')
-rw-r--r-- | drivers/md/raid1.c | 5 | ||||
-rw-r--r-- | drivers/md/raid10.c | 5 | ||||
-rw-r--r-- | drivers/md/raid5.c | 1 |
3 files changed, 6 insertions, 5 deletions
diff --git a/drivers/md/raid1.c b/drivers/md/raid1.c index 845cf95b612c..d50056ba596b 100644 --- a/drivers/md/raid1.c +++ b/drivers/md/raid1.c | |||
@@ -1027,8 +1027,9 @@ static void error(mddev_t *mddev, mdk_rdev_t *rdev) | |||
1027 | } else | 1027 | } else |
1028 | set_bit(Faulty, &rdev->flags); | 1028 | set_bit(Faulty, &rdev->flags); |
1029 | set_bit(MD_CHANGE_DEVS, &mddev->flags); | 1029 | set_bit(MD_CHANGE_DEVS, &mddev->flags); |
1030 | printk(KERN_ALERT "md/raid1:%s: Disk failure on %s, disabling device.\n" | 1030 | printk(KERN_ALERT |
1031 | KERN_ALERT "md/raid1:%s: Operation continuing on %d devices.\n", | 1031 | "md/raid1:%s: Disk failure on %s, disabling device.\n" |
1032 | "md/raid1:%s: Operation continuing on %d devices.\n", | ||
1032 | mdname(mddev), bdevname(rdev->bdev, b), | 1033 | mdname(mddev), bdevname(rdev->bdev, b), |
1033 | mdname(mddev), conf->raid_disks - mddev->degraded); | 1034 | mdname(mddev), conf->raid_disks - mddev->degraded); |
1034 | } | 1035 | } |
diff --git a/drivers/md/raid10.c b/drivers/md/raid10.c index 0641674827f0..03825cbce2d4 100644 --- a/drivers/md/raid10.c +++ b/drivers/md/raid10.c | |||
@@ -1051,8 +1051,9 @@ static void error(mddev_t *mddev, mdk_rdev_t *rdev) | |||
1051 | } | 1051 | } |
1052 | set_bit(Faulty, &rdev->flags); | 1052 | set_bit(Faulty, &rdev->flags); |
1053 | set_bit(MD_CHANGE_DEVS, &mddev->flags); | 1053 | set_bit(MD_CHANGE_DEVS, &mddev->flags); |
1054 | printk(KERN_ALERT "md/raid10:%s: Disk failure on %s, disabling device.\n" | 1054 | printk(KERN_ALERT |
1055 | KERN_ALERT "md/raid10:%s: Operation continuing on %d devices.\n", | 1055 | "md/raid10:%s: Disk failure on %s, disabling device.\n" |
1056 | "md/raid10:%s: Operation continuing on %d devices.\n", | ||
1056 | mdname(mddev), bdevname(rdev->bdev, b), | 1057 | mdname(mddev), bdevname(rdev->bdev, b), |
1057 | mdname(mddev), conf->raid_disks - mddev->degraded); | 1058 | mdname(mddev), conf->raid_disks - mddev->degraded); |
1058 | } | 1059 | } |
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c index dc574f303f8b..316fbe79389a 100644 --- a/drivers/md/raid5.c +++ b/drivers/md/raid5.c | |||
@@ -1721,7 +1721,6 @@ static void error(mddev_t *mddev, mdk_rdev_t *rdev) | |||
1721 | set_bit(Faulty, &rdev->flags); | 1721 | set_bit(Faulty, &rdev->flags); |
1722 | printk(KERN_ALERT | 1722 | printk(KERN_ALERT |
1723 | "md/raid:%s: Disk failure on %s, disabling device.\n" | 1723 | "md/raid:%s: Disk failure on %s, disabling device.\n" |
1724 | KERN_ALERT | ||
1725 | "md/raid:%s: Operation continuing on %d devices.\n", | 1724 | "md/raid:%s: Operation continuing on %d devices.\n", |
1726 | mdname(mddev), | 1725 | mdname(mddev), |
1727 | bdevname(rdev->bdev, b), | 1726 | bdevname(rdev->bdev, b), |