summaryrefslogtreecommitdiff
path: root/avr/print-utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'avr/print-utils.c')
-rw-r--r--avr/print-utils.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/avr/print-utils.c b/avr/print-utils.c
index 83f86a9..b8100a0 100644
--- a/avr/print-utils.c
+++ b/avr/print-utils.c
@@ -42,7 +42,6 @@ int dump_mem(uint32_t address, uint32_t offset, uint32_t len,
int (*readfkt)(uint8_t *, uint32_t, uint8_t), char *title)
{
uint8_t buf[16];
- char *indent = NULL;
uint8_t llen = 16;
uint8_t pre = offset % 16;
offset = offset & ~0x0f;
@@ -51,7 +50,6 @@ int dump_mem(uint32_t address, uint32_t offset, uint32_t len,
if (title && *title) {
printf_P(PSTR("%s\n"),title);
- indent = " ";
}
while (len) {
@@ -60,7 +58,9 @@ int dump_mem(uint32_t address, uint32_t offset, uint32_t len,
if (readfkt(buf, address, llen - pre) != 0)
return -2; /* TODO: Error codes */
- printf_P(PSTR("%s%.5lx:"),indent, offset);
+ if (title)
+ print_blanks(4);
+ printf_P(PSTR("%.5lx:"),offset);
for (i = 0; i < llen; i++) {
if ((i % 8) == 0)
putchar(' ');