Convert single line fprintf(.../n) to warn_report()