|
@@ -721,7 +721,7 @@ static int validate_ec_hdr(const struct ubi_device *ubi,
|
|
|
|
|
|
bad:
|
|
bad:
|
|
ubi_err("bad EC header");
|
|
ubi_err("bad EC header");
|
|
- ubi_dbg_dump_ec_hdr(ec_hdr);
|
|
|
|
|
|
+ ubi_dump_ec_hdr(ec_hdr);
|
|
dump_stack();
|
|
dump_stack();
|
|
return 1;
|
|
return 1;
|
|
}
|
|
}
|
|
@@ -803,7 +803,7 @@ int ubi_io_read_ec_hdr(struct ubi_device *ubi, int pnum,
|
|
if (verbose) {
|
|
if (verbose) {
|
|
ubi_warn("bad magic number at PEB %d: %08x instead of "
|
|
ubi_warn("bad magic number at PEB %d: %08x instead of "
|
|
"%08x", pnum, magic, UBI_EC_HDR_MAGIC);
|
|
"%08x", pnum, magic, UBI_EC_HDR_MAGIC);
|
|
- ubi_dbg_dump_ec_hdr(ec_hdr);
|
|
|
|
|
|
+ ubi_dump_ec_hdr(ec_hdr);
|
|
}
|
|
}
|
|
dbg_bld("bad magic number at PEB %d: %08x instead of "
|
|
dbg_bld("bad magic number at PEB %d: %08x instead of "
|
|
"%08x", pnum, magic, UBI_EC_HDR_MAGIC);
|
|
"%08x", pnum, magic, UBI_EC_HDR_MAGIC);
|
|
@@ -817,7 +817,7 @@ int ubi_io_read_ec_hdr(struct ubi_device *ubi, int pnum,
|
|
if (verbose) {
|
|
if (verbose) {
|
|
ubi_warn("bad EC header CRC at PEB %d, calculated "
|
|
ubi_warn("bad EC header CRC at PEB %d, calculated "
|
|
"%#08x, read %#08x", pnum, crc, hdr_crc);
|
|
"%#08x, read %#08x", pnum, crc, hdr_crc);
|
|
- ubi_dbg_dump_ec_hdr(ec_hdr);
|
|
|
|
|
|
+ ubi_dump_ec_hdr(ec_hdr);
|
|
}
|
|
}
|
|
dbg_bld("bad EC header CRC at PEB %d, calculated "
|
|
dbg_bld("bad EC header CRC at PEB %d, calculated "
|
|
"%#08x, read %#08x", pnum, crc, hdr_crc);
|
|
"%#08x, read %#08x", pnum, crc, hdr_crc);
|
|
@@ -997,7 +997,7 @@ static int validate_vid_hdr(const struct ubi_device *ubi,
|
|
|
|
|
|
bad:
|
|
bad:
|
|
ubi_err("bad VID header");
|
|
ubi_err("bad VID header");
|
|
- ubi_dbg_dump_vid_hdr(vid_hdr);
|
|
|
|
|
|
+ ubi_dump_vid_hdr(vid_hdr);
|
|
dump_stack();
|
|
dump_stack();
|
|
return 1;
|
|
return 1;
|
|
}
|
|
}
|
|
@@ -1054,7 +1054,7 @@ int ubi_io_read_vid_hdr(struct ubi_device *ubi, int pnum,
|
|
if (verbose) {
|
|
if (verbose) {
|
|
ubi_warn("bad magic number at PEB %d: %08x instead of "
|
|
ubi_warn("bad magic number at PEB %d: %08x instead of "
|
|
"%08x", pnum, magic, UBI_VID_HDR_MAGIC);
|
|
"%08x", pnum, magic, UBI_VID_HDR_MAGIC);
|
|
- ubi_dbg_dump_vid_hdr(vid_hdr);
|
|
|
|
|
|
+ ubi_dump_vid_hdr(vid_hdr);
|
|
}
|
|
}
|
|
dbg_bld("bad magic number at PEB %d: %08x instead of "
|
|
dbg_bld("bad magic number at PEB %d: %08x instead of "
|
|
"%08x", pnum, magic, UBI_VID_HDR_MAGIC);
|
|
"%08x", pnum, magic, UBI_VID_HDR_MAGIC);
|
|
@@ -1068,7 +1068,7 @@ int ubi_io_read_vid_hdr(struct ubi_device *ubi, int pnum,
|
|
if (verbose) {
|
|
if (verbose) {
|
|
ubi_warn("bad CRC at PEB %d, calculated %#08x, "
|
|
ubi_warn("bad CRC at PEB %d, calculated %#08x, "
|
|
"read %#08x", pnum, crc, hdr_crc);
|
|
"read %#08x", pnum, crc, hdr_crc);
|
|
- ubi_dbg_dump_vid_hdr(vid_hdr);
|
|
|
|
|
|
+ ubi_dump_vid_hdr(vid_hdr);
|
|
}
|
|
}
|
|
dbg_bld("bad CRC at PEB %d, calculated %#08x, "
|
|
dbg_bld("bad CRC at PEB %d, calculated %#08x, "
|
|
"read %#08x", pnum, crc, hdr_crc);
|
|
"read %#08x", pnum, crc, hdr_crc);
|
|
@@ -1191,7 +1191,7 @@ static int paranoid_check_ec_hdr(const struct ubi_device *ubi, int pnum,
|
|
return 0;
|
|
return 0;
|
|
|
|
|
|
fail:
|
|
fail:
|
|
- ubi_dbg_dump_ec_hdr(ec_hdr);
|
|
|
|
|
|
+ ubi_dump_ec_hdr(ec_hdr);
|
|
dump_stack();
|
|
dump_stack();
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
}
|
|
}
|
|
@@ -1226,7 +1226,7 @@ static int paranoid_check_peb_ec_hdr(const struct ubi_device *ubi, int pnum)
|
|
if (hdr_crc != crc) {
|
|
if (hdr_crc != crc) {
|
|
ubi_err("bad CRC, calculated %#08x, read %#08x", crc, hdr_crc);
|
|
ubi_err("bad CRC, calculated %#08x, read %#08x", crc, hdr_crc);
|
|
ubi_err("paranoid check failed for PEB %d", pnum);
|
|
ubi_err("paranoid check failed for PEB %d", pnum);
|
|
- ubi_dbg_dump_ec_hdr(ec_hdr);
|
|
|
|
|
|
+ ubi_dump_ec_hdr(ec_hdr);
|
|
dump_stack();
|
|
dump_stack();
|
|
err = -EINVAL;
|
|
err = -EINVAL;
|
|
goto exit;
|
|
goto exit;
|
|
@@ -1274,7 +1274,7 @@ static int paranoid_check_vid_hdr(const struct ubi_device *ubi, int pnum,
|
|
|
|
|
|
fail:
|
|
fail:
|
|
ubi_err("paranoid check failed for PEB %d", pnum);
|
|
ubi_err("paranoid check failed for PEB %d", pnum);
|
|
- ubi_dbg_dump_vid_hdr(vid_hdr);
|
|
|
|
|
|
+ ubi_dump_vid_hdr(vid_hdr);
|
|
dump_stack();
|
|
dump_stack();
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
|
|
|
|
@@ -1314,7 +1314,7 @@ static int paranoid_check_peb_vid_hdr(const struct ubi_device *ubi, int pnum)
|
|
ubi_err("bad VID header CRC at PEB %d, calculated %#08x, "
|
|
ubi_err("bad VID header CRC at PEB %d, calculated %#08x, "
|
|
"read %#08x", pnum, crc, hdr_crc);
|
|
"read %#08x", pnum, crc, hdr_crc);
|
|
ubi_err("paranoid check failed for PEB %d", pnum);
|
|
ubi_err("paranoid check failed for PEB %d", pnum);
|
|
- ubi_dbg_dump_vid_hdr(vid_hdr);
|
|
|
|
|
|
+ ubi_dump_vid_hdr(vid_hdr);
|
|
dump_stack();
|
|
dump_stack();
|
|
err = -EINVAL;
|
|
err = -EINVAL;
|
|
goto exit;
|
|
goto exit;
|