Skip to content

Commit

Permalink
fixup: sys/riotboot: add riotboot_slot
Browse files Browse the repository at this point in the history
  • Loading branch information
danpetry authored and kYc0o committed Dec 12, 2018
1 parent f783c25 commit 10aca80
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions sys/riotboot/slot.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,9 @@ void riotboot_slot_dump_addrs(void)
for (unsigned slot = 0; slot < riotboot_slot_numof; slot++) {
const riotboot_hdr_t *hdr = riotboot_slot_get_hdr(slot);

if (hdr != NULL) {
printf("slot %u: metadata: %p image: 0x%08" PRIx32 "\n", slot,
hdr,
hdr->start_addr);
} else {
printf("[riotboot_slot]: No riotboot_hdr found at %p\n", hdr);
}
printf("slot %u: metadata: %p image: 0x%08" PRIx32 "\n", slot,
hdr,
hdr->start_addr);
}
}

Expand Down

0 comments on commit 10aca80

Please sign in to comment.