> printf() is surprisingly useful, especially if you upgrade it a little bit to a log-level aware framework.
What do you mean by this? Do you mean using a logging framework instead of printf()?