replace printf with fputs where appropriate

3 files changed