If you don't want printf to go to a serial port, perhaps you'd like to have it redirect to the gdb console (inside Eclipse).
1. Add to your linker options:
2. In your debug configuration, find Run Commands and add:
monitor arm semihosting enable
3. In your main() make this call early (before calling printf):
That's it. Now printf will go to your console.