UBI: comply with coding style
Join all the split printk lines in order to stop checkpatch complaining. Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
这个提交包含在:
@@ -748,16 +748,15 @@ static int io_init(struct ubi_device *ubi, int max_beb_per1024)
|
||||
* read-only mode.
|
||||
*/
|
||||
if (ubi->vid_hdr_offset + UBI_VID_HDR_SIZE <= ubi->hdrs_min_io_size) {
|
||||
ubi_warn("EC and VID headers are in the same minimal I/O unit, "
|
||||
"switch to read-only mode");
|
||||
ubi_warn("EC and VID headers are in the same minimal I/O unit, switch to read-only mode");
|
||||
ubi->ro_mode = 1;
|
||||
}
|
||||
|
||||
ubi->leb_size = ubi->peb_size - ubi->leb_start;
|
||||
|
||||
if (!(ubi->mtd->flags & MTD_WRITEABLE)) {
|
||||
ubi_msg("MTD device %d is write-protected, attach in "
|
||||
"read-only mode", ubi->mtd->index);
|
||||
ubi_msg("MTD device %d is write-protected, attach in read-only mode",
|
||||
ubi->mtd->index);
|
||||
ubi->ro_mode = 1;
|
||||
}
|
||||
|
||||
@@ -892,8 +891,8 @@ int ubi_attach_mtd_dev(struct mtd_info *mtd, int ubi_num,
|
||||
* no sense to attach emulated MTD devices, so we prohibit this.
|
||||
*/
|
||||
if (mtd->type == MTD_UBIVOLUME) {
|
||||
ubi_err("refuse attaching mtd%d - it is already emulated on "
|
||||
"top of UBI", mtd->index);
|
||||
ubi_err("refuse attaching mtd%d - it is already emulated on top of UBI",
|
||||
mtd->index);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
@@ -1357,14 +1356,13 @@ static int __init ubi_mtd_param_parse(const char *val, struct kernel_param *kp)
|
||||
|
||||
len = strnlen(val, MTD_PARAM_LEN_MAX);
|
||||
if (len == MTD_PARAM_LEN_MAX) {
|
||||
printk(KERN_ERR "UBI error: parameter \"%s\" is too long, "
|
||||
"max. is %d\n", val, MTD_PARAM_LEN_MAX);
|
||||
printk(KERN_ERR "UBI error: parameter \"%s\" is too long, max. is %d\n",
|
||||
val, MTD_PARAM_LEN_MAX);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
if (len == 0) {
|
||||
printk(KERN_WARNING "UBI warning: empty 'mtd=' parameter - "
|
||||
"ignored\n");
|
||||
printk(KERN_WARNING "UBI warning: empty 'mtd=' parameter - ignored\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -1396,8 +1394,8 @@ static int __init ubi_mtd_param_parse(const char *val, struct kernel_param *kp)
|
||||
int err = kstrtoint(tokens[2], 10, &p->max_beb_per1024);
|
||||
|
||||
if (err) {
|
||||
printk(KERN_ERR "UBI error: bad value for "
|
||||
"max_beb_per1024 parameter: %s", tokens[2]);
|
||||
printk(KERN_ERR "UBI error: bad value for max_beb_per1024 parameter: %s",
|
||||
tokens[2]);
|
||||
return -EINVAL;
|
||||
}
|
||||
}
|
||||
|
在新工单中引用
屏蔽一个用户