Skip to content

Commit

Permalink
md/linear: replace printk() with pr_*()
Browse files Browse the repository at this point in the history
Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Shaohua Li <shli@fb.com>
  • Loading branch information
NeilBrown authored and shligit committed Nov 7, 2016
1 parent ec0cc22 commit a2e202a
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions drivers/md/linear.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ static struct linear_conf *linear_conf(struct mddev *mddev, int raid_disks)
sector_t sectors;

if (j < 0 || j >= raid_disks || disk->rdev) {
printk(KERN_ERR "md/linear:%s: disk numbering problem. Aborting!\n",
mdname(mddev));
pr_warn("md/linear:%s: disk numbering problem. Aborting!\n",
mdname(mddev));
goto out;
}

Expand All @@ -123,8 +123,8 @@ static struct linear_conf *linear_conf(struct mddev *mddev, int raid_disks)
discard_supported = true;
}
if (cnt != raid_disks) {
printk(KERN_ERR "md/linear:%s: not enough drives present. Aborting!\n",
mdname(mddev));
pr_warn("md/linear:%s: not enough drives present. Aborting!\n",
mdname(mddev));
goto out;
}

Expand Down Expand Up @@ -262,9 +262,7 @@ static void linear_make_request(struct mddev *mddev, struct bio *bio)
return;

out_of_bounds:
printk(KERN_ERR
"md/linear:%s: make_request: Sector %llu out of bounds on "
"dev %s: %llu sectors, offset %llu\n",
pr_err("md/linear:%s: make_request: Sector %llu out of bounds on dev %s: %llu sectors, offset %llu\n",
mdname(mddev),
(unsigned long long)bio->bi_iter.bi_sector,
bdevname(tmp_dev->rdev->bdev, b),
Expand All @@ -275,7 +273,6 @@ static void linear_make_request(struct mddev *mddev, struct bio *bio)

static void linear_status (struct seq_file *seq, struct mddev *mddev)
{

seq_printf(seq, " %dk rounding", mddev->chunk_sectors / 2);
}

Expand Down

0 comments on commit a2e202a

Please sign in to comment.