This is a direct port of the kernel %b format.
I'm unclear on if (more) non-portable printf extensions will be a problem. I
think it's desirable to have userspace formats include all kernel formats, but
there may be competing goals I'm not aware of.
I think das@ should review this as the most heavy printf committer, but they
don't appear to have a phabricator account.