fix printf compile error in Linux