There are numerous cases in the kernel code where bitmaps are used to represent sets of non-negative integers (e.g. sets of CPU IDs). I suggest an RFE for a new command that will print such sets as a list of integers (possibly collapsing consecutive ranges to x-y).
For example, it can be something like cpu_ready_set ::print_set 0-32 Do you think it is worth while and generic enough? - Alexander Kolbasov