Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+101 -113
+13 -15
drivers/mtd/ubi/attach.c
··· 378 378 if (err == UBI_IO_BITFLIPS) 379 379 bitflips = 1; 380 380 else { 381 - ubi_err("VID of PEB %d header is bad, but it " 382 - "was OK earlier, err %d", pnum, err); 381 + ubi_err("VID of PEB %d header is bad, but it was OK earlier, err %d", 382 + pnum, err); 383 383 if (err > 0) 384 384 err = -EIO; 385 385 ··· 790 790 if (ubi_check_pattern(ubi->peb_buf, 0xFF, ubi->leb_size)) 791 791 goto out_unlock; 792 792 793 - ubi_err("PEB %d contains corrupted VID header, and the data does not " 794 - "contain all 0xFF, this may be a non-UBI PEB or a severe VID " 795 - "header corruption which requires manual inspection", pnum); 793 + ubi_err("PEB %d contains corrupted VID header, and the data does not contain all 0xFF", 794 + pnum); 795 + ubi_err("this may be a non-UBI PEB or a severe VID header corruption which requires manual inspection"); 796 796 ubi_dump_vid_hdr(vid_hdr); 797 797 dbg_msg("hexdump of PEB %d offset %d, length %d", 798 798 pnum, ubi->leb_start, ubi->leb_size); ··· 907 907 ubi->image_seq = image_seq; 908 908 if (ubi->image_seq && image_seq && 909 909 ubi->image_seq != image_seq) { 910 - ubi_err("bad image sequence number %d in PEB %d, " 911 - "expected %d", image_seq, pnum, ubi->image_seq); 910 + ubi_err("bad image sequence number %d in PEB %d, expected %d", 911 + image_seq, pnum, ubi->image_seq); 912 912 ubi_dump_ec_hdr(ech); 913 913 return -EINVAL; 914 914 } ··· 997 997 /* Unsupported internal volume */ 998 998 switch (vidh->compat) { 999 999 case UBI_COMPAT_DELETE: 1000 - ubi_msg("\"delete\" compatible internal volume %d:%d" 1001 - " found, will remove it", vol_id, lnum); 1000 + ubi_msg("\"delete\" compatible internal volume %d:%d found, will remove it", 1001 + vol_id, lnum); 1002 1002 err = add_to_list(ai, pnum, vol_id, lnum, 1003 1003 ec, 1, &ai->erase); 1004 1004 if (err) ··· 1006 1006 return 0; 1007 1007 1008 1008 case UBI_COMPAT_RO: 1009 - ubi_msg("read-only compatible internal volume %d:%d" 1010 - " found, switch to read-only mode", 1009 + ubi_msg("read-only compatible internal volume %d:%d found, switch to read-only mode", 1011 1010 vol_id, lnum); 1012 1011 ubi->ro_mode = 1; 1013 1012 break; 1014 1013 1015 1014 case UBI_COMPAT_PRESERVE: 1016 - ubi_msg("\"preserve\" compatible internal volume %d:%d" 1017 - " found", vol_id, lnum); 1015 + ubi_msg("\"preserve\" compatible internal volume %d:%d found", 1016 + vol_id, lnum); 1018 1017 err = add_to_list(ai, pnum, vol_id, lnum, 1019 1018 ec, 0, &ai->alien); 1020 1019 if (err) ··· 1111 1112 get_random_bytes(&ubi->image_seq, 1112 1113 sizeof(ubi->image_seq)); 1113 1114 } else { 1114 - ubi_err("MTD device is not UBI-formatted and possibly " 1115 - "contains non-UBI data - refusing it"); 1115 + ubi_err("MTD device is not UBI-formatted and possibly contains non-UBI data - refusing it"); 1116 1116 return -EINVAL; 1117 1117 } 1118 1118
+10 -12
drivers/mtd/ubi/build.c
··· 748 748 * read-only mode. 749 749 */ 750 750 if (ubi->vid_hdr_offset + UBI_VID_HDR_SIZE <= ubi->hdrs_min_io_size) { 751 - ubi_warn("EC and VID headers are in the same minimal I/O unit, " 752 - "switch to read-only mode"); 751 + ubi_warn("EC and VID headers are in the same minimal I/O unit, switch to read-only mode"); 753 752 ubi->ro_mode = 1; 754 753 } 755 754 756 755 ubi->leb_size = ubi->peb_size - ubi->leb_start; 757 756 758 757 if (!(ubi->mtd->flags & MTD_WRITEABLE)) { 759 - ubi_msg("MTD device %d is write-protected, attach in " 760 - "read-only mode", ubi->mtd->index); 758 + ubi_msg("MTD device %d is write-protected, attach in read-only mode", 759 + ubi->mtd->index); 761 760 ubi->ro_mode = 1; 762 761 } 763 762 ··· 891 892 * no sense to attach emulated MTD devices, so we prohibit this. 892 893 */ 893 894 if (mtd->type == MTD_UBIVOLUME) { 894 - ubi_err("refuse attaching mtd%d - it is already emulated on " 895 - "top of UBI", mtd->index); 895 + ubi_err("refuse attaching mtd%d - it is already emulated on top of UBI", 896 + mtd->index); 896 897 return -EINVAL; 897 898 } 898 899 ··· 1356 1357 1357 1358 len = strnlen(val, MTD_PARAM_LEN_MAX); 1358 1359 if (len == MTD_PARAM_LEN_MAX) { 1359 - printk(KERN_ERR "UBI error: parameter \"%s\" is too long, " 1360 - "max. is %d\n", val, MTD_PARAM_LEN_MAX); 1360 + printk(KERN_ERR "UBI error: parameter \"%s\" is too long, max. is %d\n", 1361 + val, MTD_PARAM_LEN_MAX); 1361 1362 return -EINVAL; 1362 1363 } 1363 1364 1364 1365 if (len == 0) { 1365 - printk(KERN_WARNING "UBI warning: empty 'mtd=' parameter - " 1366 - "ignored\n"); 1366 + printk(KERN_WARNING "UBI warning: empty 'mtd=' parameter - ignored\n"); 1367 1367 return 0; 1368 1368 } 1369 1369 ··· 1394 1396 int err = kstrtoint(tokens[2], 10, &p->max_beb_per1024); 1395 1397 1396 1398 if (err) { 1397 - printk(KERN_ERR "UBI error: bad value for " 1398 - "max_beb_per1024 parameter: %s", tokens[2]); 1399 + printk(KERN_ERR "UBI error: bad value for max_beb_per1024 parameter: %s", 1400 + tokens[2]); 1399 1401 return -EINVAL; 1400 1402 } 1401 1403 }
+5 -4
drivers/mtd/ubi/cdev.c
··· 140 140 vol->updating = 0; 141 141 vfree(vol->upd_buf); 142 142 } else if (vol->changing_leb) { 143 - dbg_gen("only %lld of %lld bytes received for atomic LEB change" 144 - " for volume %d:%d, cancel", vol->upd_received, 145 - vol->upd_bytes, vol->ubi->ubi_num, vol->vol_id); 143 + dbg_gen("only %lld of %lld bytes received for atomic LEB change for volume %d:%d, cancel", 144 + vol->upd_received, vol->upd_bytes, vol->ubi->ubi_num, 145 + vol->vol_id); 146 146 vol->changing_leb = 0; 147 147 vfree(vol->upd_buf); 148 148 } ··· 189 189 return new_offset; 190 190 } 191 191 192 - static int vol_cdev_fsync(struct file *file, loff_t start, loff_t end, int datasync) 192 + static int vol_cdev_fsync(struct file *file, loff_t start, loff_t end, 193 + int datasync) 193 194 { 194 195 struct ubi_volume_desc *desc = file->private_data; 195 196 struct ubi_device *ubi = desc->vol->ubi;
+2 -2
drivers/mtd/ubi/debug.c
··· 43 43 return; 44 44 err = mtd_read(ubi->mtd, addr, len, &read, buf); 45 45 if (err && err != -EUCLEAN) { 46 - ubi_err("error %d while reading %d bytes from PEB %d:%d, " 47 - "read %zd bytes", err, len, pnum, offset, read); 46 + ubi_err("error %d while reading %d bytes from PEB %d:%d, read %zd bytes", 47 + err, len, pnum, offset, read); 48 48 goto out; 49 49 } 50 50
+15 -18
drivers/mtd/ubi/eba.c
··· 420 420 */ 421 421 if (err == UBI_IO_BAD_HDR_EBADMSG || 422 422 err == UBI_IO_BAD_HDR) { 423 - ubi_warn("corrupted VID header at PEB " 424 - "%d, LEB %d:%d", pnum, vol_id, 425 - lnum); 423 + ubi_warn("corrupted VID header at PEB %d, LEB %d:%d", 424 + pnum, vol_id, lnum); 426 425 err = -EBADMSG; 427 426 } else 428 427 ubi_ro_mode(ubi); ··· 659 660 if (len) { 660 661 err = ubi_io_write_data(ubi, buf, pnum, offset, len); 661 662 if (err) { 662 - ubi_warn("failed to write %d bytes at offset %d of " 663 - "LEB %d:%d, PEB %d", len, offset, vol_id, 664 - lnum, pnum); 663 + ubi_warn("failed to write %d bytes at offset %d of LEB %d:%d, PEB %d", 664 + len, offset, vol_id, lnum, pnum); 665 665 goto write_error; 666 666 } 667 667 } ··· 1038 1040 * cancel it. 1039 1041 */ 1040 1042 if (vol->eba_tbl[lnum] != from) { 1041 - dbg_wl("LEB %d:%d is no longer mapped to PEB %d, mapped to " 1042 - "PEB %d, cancel", vol_id, lnum, from, 1043 - vol->eba_tbl[lnum]); 1043 + dbg_wl("LEB %d:%d is no longer mapped to PEB %d, mapped to PEB %d, cancel", 1044 + vol_id, lnum, from, vol->eba_tbl[lnum]); 1044 1045 err = MOVE_CANCEL_RACE; 1045 1046 goto out_unlock_leb; 1046 1047 } ··· 1104 1107 err = ubi_io_read_vid_hdr(ubi, to, vid_hdr, 1); 1105 1108 if (err) { 1106 1109 if (err != UBI_IO_BITFLIPS) { 1107 - ubi_warn("error %d while reading VID header back from " 1108 - "PEB %d", err, to); 1110 + ubi_warn("error %d while reading VID header back from PEB %d", 1111 + err, to); 1109 1112 if (is_error_sane(err)) 1110 1113 err = MOVE_TARGET_RD_ERR; 1111 1114 } else ··· 1131 1134 err = ubi_io_read_data(ubi, ubi->peb_buf, to, 0, aldata_size); 1132 1135 if (err) { 1133 1136 if (err != UBI_IO_BITFLIPS) { 1134 - ubi_warn("error %d while reading data back " 1135 - "from PEB %d", err, to); 1137 + ubi_warn("error %d while reading data back from PEB %d", 1138 + err, to); 1136 1139 if (is_error_sane(err)) 1137 1140 err = MOVE_TARGET_RD_ERR; 1138 1141 } else ··· 1143 1146 cond_resched(); 1144 1147 1145 1148 if (crc != crc32(UBI_CRC32_INIT, ubi->peb_buf, data_size)) { 1146 - ubi_warn("read data back from PEB %d and it is " 1147 - "different", to); 1149 + ubi_warn("read data back from PEB %d and it is different", 1150 + to); 1148 1151 err = -EINVAL; 1149 1152 goto out_unlock_buf; 1150 1153 } ··· 1194 1197 return; 1195 1198 } 1196 1199 1197 - ubi_warn("cannot reserve enough PEBs for bad PEB handling, reserved %d," 1198 - " need %d", ubi->beb_rsvd_pebs, ubi->beb_rsvd_level); 1200 + ubi_warn("cannot reserve enough PEBs for bad PEB handling, reserved %d, need %d", 1201 + ubi->beb_rsvd_pebs, ubi->beb_rsvd_level); 1199 1202 if (ubi->corr_peb_count) 1200 1203 ubi_warn("%d PEBs are corrupted and not used", 1201 - ubi->corr_peb_count); 1204 + ubi->corr_peb_count); 1202 1205 } 1203 1206 1204 1207 /**
+13 -15
drivers/mtd/ubi/gluebi.c
··· 341 341 mutex_lock(&devices_mutex); 342 342 g = find_gluebi_nolock(vi->ubi_num, vi->vol_id); 343 343 if (g) 344 - err_msg("gluebi MTD device %d form UBI device %d volume %d " 345 - "already exists", g->mtd.index, vi->ubi_num, 346 - vi->vol_id); 344 + err_msg("gluebi MTD device %d form UBI device %d volume %d already exists", 345 + g->mtd.index, vi->ubi_num, vi->vol_id); 347 346 mutex_unlock(&devices_mutex); 348 347 349 348 if (mtd_device_register(mtd, NULL, 0)) { ··· 375 376 mutex_lock(&devices_mutex); 376 377 gluebi = find_gluebi_nolock(vi->ubi_num, vi->vol_id); 377 378 if (!gluebi) { 378 - err_msg("got remove notification for unknown UBI device %d " 379 - "volume %d", vi->ubi_num, vi->vol_id); 379 + err_msg("got remove notification for unknown UBI device %d volume %d", 380 + vi->ubi_num, vi->vol_id); 380 381 err = -ENOENT; 381 382 } else if (gluebi->refcnt) 382 383 err = -EBUSY; ··· 389 390 mtd = &gluebi->mtd; 390 391 err = mtd_device_unregister(mtd); 391 392 if (err) { 392 - err_msg("cannot remove fake MTD device %d, UBI device %d, " 393 - "volume %d, error %d", mtd->index, gluebi->ubi_num, 394 - gluebi->vol_id, err); 393 + err_msg("cannot remove fake MTD device %d, UBI device %d, volume %d, error %d", 394 + mtd->index, gluebi->ubi_num, gluebi->vol_id, err); 395 395 mutex_lock(&devices_mutex); 396 396 list_add_tail(&gluebi->list, &gluebi_devices); 397 397 mutex_unlock(&devices_mutex); ··· 420 422 gluebi = find_gluebi_nolock(vi->ubi_num, vi->vol_id); 421 423 if (!gluebi) { 422 424 mutex_unlock(&devices_mutex); 423 - err_msg("got update notification for unknown UBI device %d " 424 - "volume %d", vi->ubi_num, vi->vol_id); 425 + err_msg("got update notification for unknown UBI device %d volume %d", 426 + vi->ubi_num, vi->vol_id); 425 427 return -ENOENT; 426 428 } 427 429 ··· 447 449 gluebi = find_gluebi_nolock(vi->ubi_num, vi->vol_id); 448 450 if (!gluebi) { 449 451 mutex_unlock(&devices_mutex); 450 - err_msg("got update notification for unknown UBI device %d " 451 - "volume %d", vi->ubi_num, vi->vol_id); 452 + err_msg("got update notification for unknown UBI device %d volume %d", 453 + vi->ubi_num, vi->vol_id); 452 454 return -ENOENT; 453 455 } 454 456 gluebi->mtd.size = vi->used_bytes; ··· 505 507 506 508 err = mtd_device_unregister(mtd); 507 509 if (err) 508 - err_msg("error %d while removing gluebi MTD device %d, " 509 - "UBI device %d, volume %d - ignoring", err, 510 - mtd->index, gluebi->ubi_num, gluebi->vol_id); 510 + err_msg("error %d while removing gluebi MTD device %d, UBI device %d, volume %d - ignoring", 511 + err, mtd->index, gluebi->ubi_num, 512 + gluebi->vol_id); 511 513 kfree(mtd->name); 512 514 kfree(gluebi); 513 515 }
+38 -40
drivers/mtd/ubi/io.c
··· 183 183 } 184 184 185 185 if (retries++ < UBI_IO_RETRIES) { 186 - ubi_warn("error %d%s while reading %d bytes from PEB " 187 - "%d:%d, read only %zd bytes, retry", 186 + ubi_warn("error %d%s while reading %d bytes from PEB %d:%d, read only %zd bytes, retry", 188 187 err, errstr, len, pnum, offset, read); 189 188 yield(); 190 189 goto retry; 191 190 } 192 191 193 - ubi_err("error %d%s while reading %d bytes from PEB %d:%d, " 194 - "read %zd bytes", err, errstr, len, pnum, offset, read); 192 + ubi_err("error %d%s while reading %d bytes from PEB %d:%d, read %zd bytes", 193 + err, errstr, len, pnum, offset, read); 195 194 dump_stack(); 196 195 197 196 /* ··· 273 274 } 274 275 275 276 if (ubi_dbg_is_write_failure(ubi)) { 276 - ubi_err("cannot write %d bytes to PEB %d:%d " 277 - "(emulated)", len, pnum, offset); 277 + ubi_err("cannot write %d bytes to PEB %d:%d (emulated)", 278 + len, pnum, offset); 278 279 dump_stack(); 279 280 return -EIO; 280 281 } ··· 282 283 addr = (loff_t)pnum * ubi->peb_size + offset; 283 284 err = mtd_write(ubi->mtd, addr, len, &written, buf); 284 285 if (err) { 285 - ubi_err("error %d while writing %d bytes to PEB %d:%d, written " 286 - "%zd bytes", err, len, pnum, offset, written); 286 + ubi_err("error %d while writing %d bytes to PEB %d:%d, written %zd bytes", 287 + err, len, pnum, offset, written); 287 288 dump_stack(); 288 289 ubi_dump_flash(ubi, pnum, offset, len); 289 290 } else ··· 684 685 leb_start = be32_to_cpu(ec_hdr->data_offset); 685 686 686 687 if (ec_hdr->version != UBI_VERSION) { 687 - ubi_err("node with incompatible UBI version found: " 688 - "this UBI version is %d, image version is %d", 688 + ubi_err("node with incompatible UBI version found: this UBI version is %d, image version is %d", 689 689 UBI_VERSION, (int)ec_hdr->version); 690 690 goto bad; 691 691 } ··· 775 777 if (ubi_check_pattern(ec_hdr, 0xFF, UBI_EC_HDR_SIZE)) { 776 778 /* The physical eraseblock is supposedly empty */ 777 779 if (verbose) 778 - ubi_warn("no EC header found at PEB %d, " 779 - "only 0xFF bytes", pnum); 780 - dbg_bld("no EC header found at PEB %d, " 781 - "only 0xFF bytes", pnum); 780 + ubi_warn("no EC header found at PEB %d, only 0xFF bytes", 781 + pnum); 782 + dbg_bld("no EC header found at PEB %d, only 0xFF bytes", 783 + pnum); 782 784 if (!read_err) 783 785 return UBI_IO_FF; 784 786 else ··· 790 792 * 0xFF bytes. Report that the header is corrupted. 791 793 */ 792 794 if (verbose) { 793 - ubi_warn("bad magic number at PEB %d: %08x instead of " 794 - "%08x", pnum, magic, UBI_EC_HDR_MAGIC); 795 + ubi_warn("bad magic number at PEB %d: %08x instead of %08x", 796 + pnum, magic, UBI_EC_HDR_MAGIC); 795 797 ubi_dump_ec_hdr(ec_hdr); 796 798 } 797 - dbg_bld("bad magic number at PEB %d: %08x instead of " 798 - "%08x", pnum, magic, UBI_EC_HDR_MAGIC); 799 + dbg_bld("bad magic number at PEB %d: %08x instead of %08x", 800 + pnum, magic, UBI_EC_HDR_MAGIC); 799 801 return UBI_IO_BAD_HDR; 800 802 } 801 803 ··· 804 806 805 807 if (hdr_crc != crc) { 806 808 if (verbose) { 807 - ubi_warn("bad EC header CRC at PEB %d, calculated " 808 - "%#08x, read %#08x", pnum, crc, hdr_crc); 809 + ubi_warn("bad EC header CRC at PEB %d, calculated %#08x, read %#08x", 810 + pnum, crc, hdr_crc); 809 811 ubi_dump_ec_hdr(ec_hdr); 810 812 } 811 - dbg_bld("bad EC header CRC at PEB %d, calculated " 812 - "%#08x, read %#08x", pnum, crc, hdr_crc); 813 + dbg_bld("bad EC header CRC at PEB %d, calculated %#08x, read %#08x", 814 + pnum, crc, hdr_crc); 813 815 814 816 if (!read_err) 815 817 return UBI_IO_BAD_HDR; ··· 1030 1032 1031 1033 if (ubi_check_pattern(vid_hdr, 0xFF, UBI_VID_HDR_SIZE)) { 1032 1034 if (verbose) 1033 - ubi_warn("no VID header found at PEB %d, " 1034 - "only 0xFF bytes", pnum); 1035 - dbg_bld("no VID header found at PEB %d, " 1036 - "only 0xFF bytes", pnum); 1035 + ubi_warn("no VID header found at PEB %d, only 0xFF bytes", 1036 + pnum); 1037 + dbg_bld("no VID header found at PEB %d, only 0xFF bytes", 1038 + pnum); 1037 1039 if (!read_err) 1038 1040 return UBI_IO_FF; 1039 1041 else ··· 1041 1043 } 1042 1044 1043 1045 if (verbose) { 1044 - ubi_warn("bad magic number at PEB %d: %08x instead of " 1045 - "%08x", pnum, magic, UBI_VID_HDR_MAGIC); 1046 + ubi_warn("bad magic number at PEB %d: %08x instead of %08x", 1047 + pnum, magic, UBI_VID_HDR_MAGIC); 1046 1048 ubi_dump_vid_hdr(vid_hdr); 1047 1049 } 1048 - dbg_bld("bad magic number at PEB %d: %08x instead of " 1049 - "%08x", pnum, magic, UBI_VID_HDR_MAGIC); 1050 + dbg_bld("bad magic number at PEB %d: %08x instead of %08x", 1051 + pnum, magic, UBI_VID_HDR_MAGIC); 1050 1052 return UBI_IO_BAD_HDR; 1051 1053 } 1052 1054 ··· 1055 1057 1056 1058 if (hdr_crc != crc) { 1057 1059 if (verbose) { 1058 - ubi_warn("bad CRC at PEB %d, calculated %#08x, " 1059 - "read %#08x", pnum, crc, hdr_crc); 1060 + ubi_warn("bad CRC at PEB %d, calculated %#08x, read %#08x", 1061 + pnum, crc, hdr_crc); 1060 1062 ubi_dump_vid_hdr(vid_hdr); 1061 1063 } 1062 - dbg_bld("bad CRC at PEB %d, calculated %#08x, " 1063 - "read %#08x", pnum, crc, hdr_crc); 1064 + dbg_bld("bad CRC at PEB %d, calculated %#08x, read %#08x", 1065 + pnum, crc, hdr_crc); 1064 1066 if (!read_err) 1065 1067 return UBI_IO_BAD_HDR; 1066 1068 else ··· 1298 1300 crc = crc32(UBI_CRC32_INIT, vid_hdr, UBI_EC_HDR_SIZE_CRC); 1299 1301 hdr_crc = be32_to_cpu(vid_hdr->hdr_crc); 1300 1302 if (hdr_crc != crc) { 1301 - ubi_err("bad VID header CRC at PEB %d, calculated %#08x, " 1302 - "read %#08x", pnum, crc, hdr_crc); 1303 + ubi_err("bad VID header CRC at PEB %d, calculated %#08x, read %#08x", 1304 + pnum, crc, hdr_crc); 1303 1305 ubi_err("self-check failed for PEB %d", pnum); 1304 1306 ubi_dump_vid_hdr(vid_hdr); 1305 1307 dump_stack(); ··· 1409 1411 1410 1412 err = mtd_read(ubi->mtd, addr, len, &read, buf); 1411 1413 if (err && !mtd_is_bitflip(err)) { 1412 - ubi_err("error %d while reading %d bytes from PEB %d:%d, " 1413 - "read %zd bytes", err, len, pnum, offset, read); 1414 + ubi_err("error %d while reading %d bytes from PEB %d:%d, read %zd bytes", 1415 + err, len, pnum, offset, read); 1414 1416 goto error; 1415 1417 } 1416 1418 1417 1419 err = ubi_check_pattern(buf, 0xFF, len); 1418 1420 if (err == 0) { 1419 - ubi_err("flash region at PEB %d:%d, length %d does not " 1420 - "contain all 0xFF bytes", pnum, offset, len); 1421 + ubi_err("flash region at PEB %d:%d, length %d does not contain all 0xFF bytes", 1422 + pnum, offset, len); 1421 1423 goto fail; 1422 1424 } 1423 1425
+1 -3
drivers/mtd/ubi/misc.c
··· 128 128 ubi->beb_rsvd_level = ubi->bad_peb_limit - ubi->bad_peb_count; 129 129 if (ubi->beb_rsvd_level < 0) { 130 130 ubi->beb_rsvd_level = 0; 131 - ubi_warn("number of bad PEBs (%d) is above the expected limit " 132 - "(%d), not reserving any PEBs for bad PEB handling, " 133 - "will use available PEBs (if any)", 131 + ubi_warn("number of bad PEBs (%d) is above the expected limit (%d), not reserving any PEBs for bad PEB handling, will use available PEBs (if any)", 134 132 ubi->bad_peb_count, ubi->bad_peb_limit); 135 133 } 136 134 }
+4 -4
drivers/mtd/ubi/vtbl.c
··· 270 270 271 271 if (len1 > 0 && len1 == len2 && 272 272 !strncmp(vtbl[i].name, vtbl[n].name, len1)) { 273 - ubi_err("volumes %d and %d have the same name" 274 - " \"%s\"", i, n, vtbl[i].name); 273 + ubi_err("volumes %d and %d have the same name \"%s\"", 274 + i, n, vtbl[i].name); 275 275 ubi_dump_vtbl_record(&vtbl[i], i); 276 276 ubi_dump_vtbl_record(&vtbl[n], n); 277 277 return -EINVAL; ··· 562 562 if (vtbl[i].flags & UBI_VTBL_AUTORESIZE_FLG) { 563 563 /* Auto re-size flag may be set only for one volume */ 564 564 if (ubi->autoresize_vol_id != -1) { 565 - ubi_err("more than one auto-resize volume (%d " 566 - "and %d)", ubi->autoresize_vol_id, i); 565 + ubi_err("more than one auto-resize volume (%d and %d)", 566 + ubi->autoresize_vol_id, i); 567 567 kfree(vol); 568 568 return -EINVAL; 569 569 }