build: fix some printf format warnings on clang.