This will be usable after clang has been extended to accept length modifiers for %b when compiling kernel code. But we need FreeBSD to support it first...
Details
Details
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Skipped - Unit
Tests Skipped
Event Timeline
| share/man/man9/printf.9 | ||
|---|---|---|
| 182 | Fixed. The previous example has been fixed in a separate commit. | |
| sys/kern/subr_prf.c | ||
| 971 | That is already supported by the code above. But you need to be able to specify bit positions from 1 to 128 now. The positions from 1 to 32 are encoded as characters from \01 to \40. So you need a way to encode the other positions. OpenBSD also uses the characters from \200 to \377 for it. If you have a different idea, I am happy to explore it. Once this is in, I need to change clang such that it knows that you can use a length modifier (like l or j) in combination with %b. Right now it is warning that you can only use a 32-bit entity. But when you just ignore the warning, it works. Fixing clang is the next step when this change is in. | |