Skip to content

Commit d7aa5cc

Browse files
committed
Remove printf call from _exit in syscalls_sam3.c
The use of printf here is problematic (stdio and/or uart is probably not even set up) and expensive (~10k of code!) See #47
1 parent 2a17b0d commit d7aa5cc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cores/arduino/syscalls_sam3.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,8 @@ extern int _write( UNUSED(int file), char *ptr, int len )
132132

133133
extern void _exit( int status )
134134
{
135-
printf( "Exiting with status %d.\n", status ) ;
135+
// printf is probably not set up by Arduino, and shouldn't be used.
136+
// printf( "Exiting with status %d.\n", status ) ;
136137

137138
for ( ; ; ) ;
138139
}

0 commit comments

Comments
 (0)