Re: [PATCH v2 6/9] selftests/mm: Print some details when uffd-stress gets bad params
From: Brendan Jackman
Date: Fri Feb 28 2025 - 07:47:55 EST
On Fri, 21 Feb 2025 at 19:26, Brendan Jackman <jackmanb@xxxxxxxxxx> wrote:
> nr_pages_per_cpu = bytes / page_size / nr_threads;
> if (!nr_pages_per_cpu) {
> - _err("invalid MiB");
> + _err("pages_per_cpu = 0, cannot test (%lu / %lu / %lu)",
> + nr_pages_per_cpu, bytes, page_size, nr_threads);
Ugh, this is garbage, wrong number of args for the format string.
I think I originally had %d instead of 0, then changed and didn't
notice I broke it because it doesn't actually cause the overall
kselftests build to fail. I'll need to find a way to update my scripts
to detect that.