#include <IOKit/system.h>
IOKit/system.h
Must be before other includes of kern/assert.h
function_doprnt
extern void _doprnt(const char *format, va_list *arg, void (*lputc)(char), int radix)
▾
claude-fable-5, 2026-08-24 · not from Apple sources · verified against xnu osfmk/kern/printf.c
Common formatting engine for the kernel printf family, from CMU Mach. Formats format with the arguments at *argp, emitting each character through the lputc routine. Supports the standard integer, character and string conversions plus kernel extensions: %b (decoded register bits), %D (hex dump with separator), %r/%n (signed/unsigned in the default radix given by the radix parameter; kernel callers pass 16). Floating point is not supported. Used to build printf, kprintf and the paniclog writers.