Re: [PATCH v3 1/6] initramfs_test: add fill_cpio() format parameter

From: David Disseldorp

Date: Thu Mar 26 2026 - 19:16:07 EST


Thanks for the feedback Petr...

On Thu, 26 Mar 2026 17:23:11 +0100, Petr Mladek wrote:

> The compiler is not longer able to check whether the number/type of
> parameters match the given printf format. It was poitned out by
> Sashiko.dev AI and I agree that it makes it harder to maintain.
>
> A solution might be to split this sprintf out into a macro.
> Or add some "bool inject_ox" parameter and keep the format
> hardcoded here.

The "bool inject_ox" option would keep the test code relatively simple.
I'll do that and send a v4.