added wall flag, some printf format char casting