wut
wut copied to clipboard
Add `WUT_FORMAT_PRINTF` and fix some format string bugs.
This adds WUT_FORMAT_PRINTF to decorate printf-like functions.
Incidentally, this revealed a few debug prints that had the wrong number of arguments for the format string, or read the wrong number of bytes from an argument (in devoptab_fsa_truncate.cpp, that one was pretty bad.)
Debug prints were also changed to use %p for pointers. I don't think any of those cases could lead to crashes though.