shell: flash: display offsets properly
This commit is contained in:
parent
463cf04f8d
commit
24f7c7b96a
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ static void print_hex_ascii(uint32_t offset, const char *buf, size_t len)
|
|||
for (; len; buf += n, len -= n) {
|
||||
n = min(len, 16);
|
||||
|
||||
printf("%04" PRIx32 ": ", offset);
|
||||
printf("%08" PRIx32 ": ", offset);
|
||||
|
||||
for (i = 0; i < 16; ++i) {
|
||||
c = (i < n) ? buf[i] : 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue