HomeFreeBSD

sched_ule: 32-bit platforms: Fix runq_print() after runq changes

Description

sched_ule: 32-bit platforms: Fix runq_print() after runq changes

The compiler would report a mismatch between the format and the actual
type of the runqueue status word because the latter is now
unconditionally defined as an 'unsigned long' (which has the "natural"
platform size) and the format expects a 'size_t', which expands to an
'unsigned int' on 32-bit platforms (although they are both of the same
actual size).

This worked before as the C type used depended on the architecture and
was set to 'uint32_t' aka 'unsigned int' on these 32-bit platforms.

Just fix the format (use 'l'). While here, remove outputting '0x' by
hand, instead relying on '#' (only difference is for 0, and is fine).

runq_print() should be moved out of 'sched_ule.c' in a subsequent
commit.

Reported by: Jenkins
Fixes: 79d8a99ee583 ("runq: Deduce most parameters, remove machine headers")
MFC after: 1 month
Event: Kitchener-Waterloo Hackathon 202506
Sponsored by: The FreeBSD Foundation

Details

Provenance
olceAuthored on Jun 18 2025, 3:15 PM
Parents
rG63c9b018069b: arm64: lib32: Don't try to install removed <machine/runq.h>
Branches
Unknown
Tags
Unknown