From: Mike Travis Date: Tue, 25 Mar 2008 22:06:55 +0000 (-0700) Subject: cpumask: add cpumask_scnprintf_len function X-Git-Tag: v2.6.26-rc1~1132^2~42 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=30ca60c15a725f655e5d3f14e0238a066bc5aeb7;p=pandora-kernel.git cpumask: add cpumask_scnprintf_len function Add a new function cpumask_scnprintf_len() to return the number of characters needed to display "len" cpumask bits. The current method of allocating NR_CPUS bytes is incorrect as what's really needed is 9 characters per 32-bit word of cpumask bits (8 hex digits plus the seperator [','] or the terminating NULL.) This function provides the caller the means to allocate the correct string length. Cc: Paul Jackson Signed-off-by: Mike Travis Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed