Re: [PATCH v2 6/9] selftests/mm: Print some details when uffd-stress gets bad params

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.




[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux