Mike Travis 30ca60c15a 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 <pj@sgi.com>
Signed-off-by: Mike Travis <travis@sgi.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2008-04-19 19:44:58 +02:00
..
2008-04-10 15:34:05 -07:00
2008-02-03 17:48:52 +02:00
2008-02-03 17:48:52 +02:00
2008-01-28 23:58:27 -05:00
2008-04-17 10:42:27 -04:00
2008-03-04 14:47:05 -08:00
2008-01-30 13:33:00 +01:00
2008-03-13 13:15:52 -07:00