Re: %b with uint64_t?

From: Konstantin Belousov <kostikbel_at_gmail.com>
Date: Sat, 01 Feb 2025 16:51:59 UTC
On Sat, Feb 01, 2025 at 01:07:37AM +0000, Bjoern A. Zeeb wrote:
> Hi,
> 
> I recently ran into a problem with a uint64_t bitflag to use the %b
> print format in the kernel.
> 
> I tried the usual %jb with uintmax_t but clang didn't seem to like that
> either.
This combination seems to be supported by subr_prf.c.
It is likely that just a clang checker does not know about the %jb format.
It would require some (more) local patches.

Sorry that this is not too helpful.
> 
> Is there a way to make this work?
> 
> /bz
> 
> -- 
> Bjoern A. Zeeb                                                     r15:7