Re: [PATCH 1/5] Fix cpumask_scnprintf_len() misdesign

From: Bert Wesarg
Date: Thu May 08 2008 - 11:01:40 EST


On Thu, May 8, 2008 at 12:14 AM, Alexey Dobriyan <adobriyan@xxxxxxxxx> wrote:
> cpumask_scnprintf_len() takes "len" as an argument which is surprising,
> If one follows call chain down it isn't length but number of bits. But
> there is natural number of bits when talking about CPU masks -- NR_CPUS.
> So use that.
Reported-here: http://thread.gmane.org/gmane.linux.kernel/671725

>
> Remove 1:1 wrapper macro while I'm at it.
>
> Signed-off-by: Alexey Dobriyan <adobriyan@xxxxxxxxx>
Acked-by: Bert Wesarg <bert.wesarg@xxxxxxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/