summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Trumtrar <s.trumtrar@pengutronix.de>2021-01-12 10:38:01 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2021-01-13 10:06:02 +0100
commit73aa299ed85f36e340e277845e6328eff6974f97 (patch)
tree9195a88da69b341c0444bebb851e7591d72279e4
parente76ee82934e0ce7a704eadbe83adda73d0fc58f0 (diff)
downloadbarebox-73aa299ed85f36e340e277845e6328eff6974f97.tar.gz
barebox-73aa299ed85f36e340e277845e6328eff6974f97.tar.xz
imd: change disabled checksum tag info to debug
When the checksum tag is disabled the CRC is most likely invalid. And if the checksum tag is disabled and the CRC is actually invalid the user doesn't care for it anyway. This information only confuses the user so make it a debug message. Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--common/imd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/imd.c b/common/imd.c
index ef9eff876b..aff3b00b6b 100644
--- a/common/imd.c
+++ b/common/imd.c
@@ -406,7 +406,7 @@ int imd_verify_crc32(void *buf, size_t size)
*p, crc);
return -EILSEQ;
} else if (*p != crc && !imd_crc32_is_valid(*flags)) {
- printf("CRC: is invalid, but the checksum tag is not enabled\n");
+ debug("CRC: is invalid, but the checksum tag is not enabled\n");
return -EINVAL;
} else {
printf("CRC: valid\n");