[RESEND. PATCH] riscv: Use '%u' to format the output of 'cpu'

Maciej W. Rozycki macro at orcam.me.uk
Thu Sep 12 15:12:44 PDT 2024


On Thu, 12 Sep 2024, WangYuli wrote:

> 'cpu' is an unsigned integer, so its placeholder should be %u, not %d.

 NB the proper ISO C and POSIX term for `%u', `%d', etc. is "conversion 
specifier" rather than "placeholder".

  Maciej



More information about the linux-riscv mailing list