summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--avr/debug.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/avr/debug.c b/avr/debug.c
index 7ff7aea..ea4aa21 100644
--- a/avr/debug.c
+++ b/avr/debug.c
@@ -216,26 +216,24 @@ printfreelist(const char * title)
int i;
unsigned int freesum = 0;
-/* TODO: printf_P */
-
if (!__flp) {
- printf("%s no free list\n", title ? title : "");
+ printf_P(PSTR("%s no free list\n"), title ? title : "");
} else {
- printf("Free list: %s\n", title ? title : "");
+ printf_P(PSTR("Free list: %s\n"), title ? title : "");
for (i = 0, fp1 = __flp; fp1; i++, fp1 = fp1->nx) {
- printf(" entry %d @ %04x: size %4u, next ",
+ printf_P(PSTR(" entry %d @ %04x: size %4u, next "),
i, (size_t)fp1, fp1->sz);
if (fp1->nx)
- printf("%04x\n", (size_t)fp1->nx);
+ printf_P(PSTR("%04x\n"), (size_t)fp1->nx);
else
- printf("NULL\n");
+ printf_P(PSTR("NULL\n"));
freesum += fp1->sz;
}
}
freesum += get_freemem();
- printf("SP: %04x, __brkval: %04x, Total free: %04u\n",
+ printf_P(PSTR("SP: %04x, __brkval: %04x, Total free: %04u\n"),
(size_t) STACK_POINTER(), (size_t) __brkval, freesum);
}