lkml.org 
[lkml]   [2008]   [May]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/5] Fix cpumask_scnprintf_len() misdesign
On Thu, May 8, 2008 at 12:14 AM, Alexey Dobriyan <adobriyan@gmail.com> 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@gmail.com>
Acked-by: Bert Wesarg <bert.wesarg@googlemail.com>


\
 
 \ /
  Last update: 2008-05-08 17:03    [W:0.113 / U:0.120 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site