riotboot: use log level ERROR if riotboot_flashwrite_finish_raw() fails
This commit is contained in:
parent
e697d93e02
commit
4bcccb1c68
@ -151,7 +151,7 @@ int riotboot_flashwrite_putbytes(riotboot_flashwrite_t *state,
|
|||||||
}
|
}
|
||||||
|
|
||||||
int riotboot_flashwrite_finish_raw(riotboot_flashwrite_t *state,
|
int riotboot_flashwrite_finish_raw(riotboot_flashwrite_t *state,
|
||||||
const uint8_t *bytes, size_t len)
|
const uint8_t *bytes, size_t len)
|
||||||
{
|
{
|
||||||
assert(len <= FLASHPAGE_SIZE);
|
assert(len <= FLASHPAGE_SIZE);
|
||||||
|
|
||||||
@ -179,7 +179,7 @@ int riotboot_flashwrite_finish_raw(riotboot_flashwrite_t *state,
|
|||||||
LOG_INFO(LOG_PREFIX "riotboot flashing completed successfully\n");
|
LOG_INFO(LOG_PREFIX "riotboot flashing completed successfully\n");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
LOG_WARNING(LOG_PREFIX "re-flashing first block failed!\n");
|
LOG_ERROR(LOG_PREFIX "re-flashing first block failed!\n");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
#endif /* !CONFIG_RIOTBOOT_FLASHWRITE_RAW */
|
#endif /* !CONFIG_RIOTBOOT_FLASHWRITE_RAW */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user