You can try:
- FIO_CreateFileEx and FIO_WriteFile or my_fprintf (quite slow if you call it 1000 times, but should be fine for simple stuff)
- use g3gg0's trace module (buffered, so it's fast enough to print stuff from state objects, ADTG or other time-critical tasks)