modify printf for ios