Replace printf functions with CfOut.