1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-16 01:53:51 +01:00

sys/riotboot/hdr: change header validation log to DEBUG

This commit is contained in:
Francisco Molina 2022-04-14 08:47:12 +02:00
parent e3f9252947
commit ec4a96b108

View File

@ -29,6 +29,7 @@
#include "log.h" #include "log.h"
#else #else
#define LOG_INFO(...) printf(__VA_ARGS__) #define LOG_INFO(...) printf(__VA_ARGS__)
#define LOG_DEBUG(...) printf(__VA_ARGS__)
#endif #endif
#include "riotboot/hdr.h" #include "riotboot/hdr.h"
@ -53,7 +54,7 @@ void riotboot_hdr_print(const riotboot_hdr_t *riotboot_hdr)
int riotboot_hdr_validate(const riotboot_hdr_t *riotboot_hdr) int riotboot_hdr_validate(const riotboot_hdr_t *riotboot_hdr)
{ {
if (riotboot_hdr->magic_number != RIOTBOOT_MAGIC) { if (riotboot_hdr->magic_number != RIOTBOOT_MAGIC) {
LOG_INFO("%s: riotboot_hdr magic number invalid\n", __func__); LOG_DEBUG("%s: riotboot_hdr magic number invalid\n", __func__);
return -1; return -1;
} }
@ -61,7 +62,7 @@ int riotboot_hdr_validate(const riotboot_hdr_t *riotboot_hdr)
riotboot_hdr->chksum ? 0 : -1; riotboot_hdr->chksum ? 0 : -1;
if (res) { if (res) {
LOG_INFO("%s: riotboot_hdr checksum invalid\n", __func__); LOG_DEBUG("%s: riotboot_hdr checksum invalid\n", __func__);
} }
return res; return res;