Re: [PATCH v2 1/1] mtd: mtdpart: Do not supply NULL to printf()
From: Miquel Raynal
Date: Tue Mar 18 2025 - 12:21:03 EST
On Thu, 13 Mar 2025 11:15:53 +0200, Andy Shevchenko wrote:
> GCC compiler is not happy about NULL being supplied as printf() parameter:
>
> drivers/mtd/mtdpart.c:693:34: error: ‘%s’ directive argument is null [-Werror=format-overflow=]
>
> Move the code after the parser test for NULL, and drop the ternary completely.
> The user can deduct this since when it's not NULL two messages will be printed.
>
> [...]
Applied to mtd/next, thanks!
[1/1] mtd: mtdpart: Do not supply NULL to printf()
commit: 6bc9f42739889eaaaa47b90f48e4ef8323efa3ea
Patche(s) should be available on mtd/linux.git and will be
part of the next PR (provided that no robot complains by then).
Kind regards,
Miquèl