mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-28 10:01:32 +00:00
ubi: fix UBI_SILENCE_MSG
- drop CONFIG_ prefix from kconfig entry - fix small compilation issue with CONFIG_UBI_SILENCE_MSG Signed-off-by: Markus Klotzbuecher <markus.klotzbuecher@kistler.com> Reviewed-by: Heiko Schocher <hs@denx.de> Cc: Kyungmin Park <kmpark@infradead.org>
This commit is contained in:
parent
985186d1f2
commit
5ebd3df64d
2 changed files with 3 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
||||||
menu "UBI support"
|
menu "UBI support"
|
||||||
|
|
||||||
config CONFIG_UBI_SILENCE_MSG
|
config UBI_SILENCE_MSG
|
||||||
bool "UBI silence verbose messages"
|
bool "UBI silence verbose messages"
|
||||||
default ENV_IS_IN_UBI
|
default ENV_IS_IN_UBI
|
||||||
help
|
help
|
||||||
|
|
|
@ -1351,6 +1351,7 @@ static int self_check_write(struct ubi_device *ubi, const void *buf, int pnum,
|
||||||
|
|
||||||
ubi_err(ubi, "self-check failed for PEB %d:%d, len %d",
|
ubi_err(ubi, "self-check failed for PEB %d:%d, len %d",
|
||||||
pnum, offset, len);
|
pnum, offset, len);
|
||||||
|
#if !defined(CONFIG_UBI_SILENCE_MSG)
|
||||||
ubi_msg(ubi, "data differ at position %d", i);
|
ubi_msg(ubi, "data differ at position %d", i);
|
||||||
ubi_msg(ubi, "hex dump of the original buffer from %d to %d",
|
ubi_msg(ubi, "hex dump of the original buffer from %d to %d",
|
||||||
i, i + dump_len);
|
i, i + dump_len);
|
||||||
|
@ -1360,6 +1361,7 @@ static int self_check_write(struct ubi_device *ubi, const void *buf, int pnum,
|
||||||
i, i + dump_len);
|
i, i + dump_len);
|
||||||
print_hex_dump("", DUMP_PREFIX_OFFSET, 32, 1,
|
print_hex_dump("", DUMP_PREFIX_OFFSET, 32, 1,
|
||||||
buf1 + i, dump_len, 1);
|
buf1 + i, dump_len, 1);
|
||||||
|
#endif
|
||||||
dump_stack();
|
dump_stack();
|
||||||
err = -EINVAL;
|
err = -EINVAL;
|
||||||
goto out_free;
|
goto out_free;
|
||||||
|
|
Loading…
Add table
Reference in a new issue