Mercurial > ~darius > hgwebdir.cgi > stm32temp
changeset 23:2bce4dbf52b8
Use CR/LF to printfs (should probably do the conversion in _write)
author | Daniel O'Connor <darius@dons.net.au> |
---|---|
date | Sat, 17 Nov 2012 12:15:17 +1030 |
parents | 198ac9d95770 |
children | 1e2fa7396f98 |
files | syscalls.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/syscalls.c Sat Nov 17 12:14:38 2012 +1030 +++ b/syscalls.c Sat Nov 17 12:15:17 2012 +1030 @@ -28,7 +28,8 @@ void _exit(int status) { - printf("_exit called with parameter %d\n", status); + printf("_exit called with parameter %d\r\n", status); + __disable_irq(); while(1) ; } @@ -62,7 +63,7 @@ prev_heap_end = heap_end; if (heap_end + incr > get_stack_top()) { - printf("Heap and stack collision\n"); + printf("Heap and stack collision\r\n"); abort(); }