Replaced printf with sim_printf.