Skip to content

Commit

Permalink
debug: coredump: flash backend: print error if write fails
Browse files Browse the repository at this point in the history
The loop in `coredump_flash_backend_buffer_output` might fail without
any alerts. This could be due to e.g. a too small coredump-partion.

Add a LOG_ERR if an error occurs.

Signed-off-by: Jeppe Odgaard <[email protected]>
  • Loading branch information
Jeppe Odgaard authored and nashif committed Oct 26, 2023
1 parent 08bd1c5 commit 530a309
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions subsys/debug/coredump/coredump_backend_flash_partition.c
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,7 @@ static void coredump_flash_backend_buffer_output(uint8_t *buf, size_t buflen)
&backend_ctx.stream_ctx,
tmp_buf, copy_sz, false);
if (backend_ctx.error != 0) {
LOG_ERR("Flash write error: %d", backend_ctx.error);
break;
}

Expand Down

0 comments on commit 530a309

Please sign in to comment.