# Bug report ### Bug description: Inspired by #146578, I wrote a [checker](https://github.com/sunmy2019/cpython/tree/py-format-checker/Tools/py-format-checker) to check all unicode format strings. There are 2 kinds of errors. 1) There are ~8 real mistakes. 2) Comply with C99 for va_list: https://en.cppreference.com/w/c/variadic/va_arg.html Most of the changes are `%d` <-> `%ld` for `int` and `Py_ssize_t`. I opened an draft PR https://github.com/python/cpython/pull/146616 containing only the fixes to display what could be changed. We can discuss and cherry pick some fixes in that PR. ### CPython versions tested on: CPython main branch ### Operating systems tested on: Linux <!-- gh-linked-prs --> ### Linked PRs * gh-146616 * gh-146617 * gh-146618 * gh-146619 * gh-146620 * gh-146634 * gh-146647 * gh-146648 * gh-146649 * gh-146650 * gh-146651 * gh-146652 * gh-146653 * gh-146654 * gh-146655 * gh-146658 * gh-147704 * gh-147705 <!-- /gh-linked-prs -->
Bug report
Bug description:
Inspired by #146578, I wrote a checker to check all unicode format strings.
There are 2 kinds of errors.
Most of the changes are
%d<->%ldforintandPy_ssize_t.I opened an draft PR #146616 containing only the fixes to display what could be changed. We can discuss and cherry pick some fixes in that PR.
CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux
Linked PRs
Python/directory #146619Objects/directory #146620