Issue 3289: substitute warnings for print statements