# HG changeset patch # User Daniel O'Connor # Date 1353116717 -37800 # Node ID 2bce4dbf52b89d330c1616a74fe268c941c38a3a # Parent 198ac9d957704b0fb7ec73c1700055adf8be5eb6 Use CR/LF to printfs (should probably do the conversion in _write) diff -r 198ac9d95770 -r 2bce4dbf52b8 syscalls.c --- 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(); }