device_printf (9)
Leading comments
Copyright (c) 2003 M. Warner Losh
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or oth...
(The comments found at the beginning of the groff file "man9/device_printf.9freebsd".)
NAME
device_printf
- formatted output conversion
SYNOPSIS
In sys/param.h
In sys/bus.h
Ft int
Fn device_printf device_t dev const char *fmt ...
DESCRIPTION
The
Fn device_printf
function is a convenience interface to the
printf(9)
function.
It outputs the name of the
Fa dev
device, followed by a colon and a space, and then what
printf(9)
would print if you passed
Fa fmt
and the remaining arguments to it.
RETURN VALUES
The
Fn device_printf
function returns the number of characters displayed.
SEE ALSO
printf(3),
printf(9)