ape: adjust some printf format strings to correctly match argument types