DEVICE_PRINTF(9)

πŸ“¦ version 15.1, in freebsd 14.5, freebsd 15.1, nixpkgs unstable

πŸŽ€ NAME πŸŽ€

device_printf β€” formatted output conversion. This is the DEVICE_PRINTF(9) manual page, bestie, from the Kernel Developer's Manual. Iykyk. πŸ’…

πŸ› οΈ SYNOPSIS πŸ› οΈ

#include <sys/param.h>
#include <sys/bus.h>

int
device_printf(device_t dev, const char *fmt, ...);

πŸ’… DESCRIPTION πŸ’…

Okay so device_printf() is literally a convenience interface to printf(9). No cap. It outputs the name of the dev device, followed by a colon and a space, and then what printf(9) would print if you passed fmt and the remaining arguments to it. It’s giving β€œprintf, but the device name already walked in with main character energy.” Periodt. ✨

🌈 RETURN VALUES 🌈

device_printf() returns the number of characters displayed. That’s the whole vibe check, fr fr. πŸ’–

πŸ‘€ SEE ALSO πŸ‘€


🫢 Cute sign-off: this is DEVICE_PRINTF(9) from Debian, dated April 21, 2003. Slay. πŸ’…
πŸ“¦ where this page comes from