Re: format_cpumask()

William Lee Irwin III
2003-11-18T00:00:30Z

At some point in the past, I wrote:
>> I was trying to make it a NR_CPUS -bit integer with the
>> highest nybbles
>> printed first. What's your favorite alternative?

On Mon, Nov 17, 2003 at 03:56:34PM -0800, Luck, Tony wrote:
> The prettiest output format I can think of would be
> to pretend that we had enough bits for NR_CPUS. I.e.
> on a 128 cpu system, cpu0 looks like:
> 00000000000000000000000000000001
> and cpu 127 is:
> 80000000000000000000000000000000
> This is probably the messiest to implement :-(
> -Tony

This is actually what I was trying to do. It's why I started the
loop of printing out the hexadecimal unsigned long components with
for (k = sizeof(cpumask_t)/sizeof(long) - 1; k >= 0; --k);

except I posted ++k. Amended patch coming very shortly.

-- wli