riotboot: use log level ERROR if riotboot_flashwrite_finish_raw() fails

This commit is contained in:
Benjamin Valentin 2020-11-18 18:04:59 +01:00
parent e697d93e02
commit 4bcccb1c68

View File

@ -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 */