[PATCH -next] test/py/test_mmc: wrap multi-argument printf-style strings

Tom Rini trini at konsulko.com
Thu Jun 19 16:13:31 CEST 2025


On Thu, Jun 19, 2025 at 06:45:05AM -0500, Bryan Brattlof wrote:

> Newer versions of python will emit a TypeError about not enough
> arguments for a format string:
> 
>     FAILED ub/test/py/tests/test_mmc.py::test_mmc_dev - TypeError: not enough arguments for format string
>     FAILED ub/test/py/tests/test_mmc.py::test_mmcinfo - TypeError: not enough arguments for format string
>     FAILED ub/test/py/tests/test_mmc.py::test_mmc_info - TypeError: not enough arguments for format string
>     FAILED ub/test/py/tests/test_mmc.py::test_mmc_rescan - TypeError: not enough arguments for format string
>     FAILED ub/test/py/tests/test_mmc.py::test_mmc_part - TypeError: not enough arguments for format string
> 
> Add parentheses around all multi argument format strings so all
> arguments will be passed to the format string
> 
> Signed-off-by: Bryan Brattlof <bb at ti.com>

Nice! Does this mean you're also running these on hardware somewhere?

Reviewed-by: Tom Rini <trini at konsulko.com>

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20250619/619157c9/attachment.sig>


More information about the U-Boot mailing list