xref: /freebsd/share/man/man9/device_printf.9 (revision 3e1cee04f8b33031d7d2640344d5b93d45e21b8f)
16e684dceSWarner Losh.\"
26e684dceSWarner Losh.\" Copyright (c) 2003 M. Warner Losh
36e684dceSWarner Losh.\" All rights reserved.
46e684dceSWarner Losh.\"
56e684dceSWarner Losh.\" Redistribution and use in source and binary forms, with or without
66e684dceSWarner Losh.\" modification, are permitted provided that the following conditions
76e684dceSWarner Losh.\" are met:
86e684dceSWarner Losh.\" 1. Redistributions of source code must retain the above copyright
96e684dceSWarner Losh.\"    notice, this list of conditions and the following disclaimer.
106e684dceSWarner Losh.\" 2. Redistributions in binary form must reproduce the above copyright
116e684dceSWarner Losh.\"    notice, this list of conditions and the following disclaimer in the
126e684dceSWarner Losh.\"    documentation and/or other materials provided with the distribution.
136e684dceSWarner Losh.\"
146e684dceSWarner Losh.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
156e684dceSWarner Losh.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
166e684dceSWarner Losh.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
176e684dceSWarner Losh.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
186e684dceSWarner Losh.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
196e684dceSWarner Losh.\" BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
206e684dceSWarner Losh.\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
216e684dceSWarner Losh.\" AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
226e684dceSWarner Losh.\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
236e684dceSWarner Losh.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
246e684dceSWarner Losh.\" SUCH DAMAGE.
256e684dceSWarner Losh.\"
266e684dceSWarner Losh.\" $FreeBSD$
276e684dceSWarner Losh.\"
286e684dceSWarner Losh.Dd April 21, 2003
296e684dceSWarner Losh.Dt DEVICE_PRINTF 9
306e684dceSWarner Losh.Os
316e684dceSWarner Losh.Sh NAME
326e684dceSWarner Losh.Nm device_printf
336e684dceSWarner Losh.Nd formatted output conversion
346e684dceSWarner Losh.Sh SYNOPSIS
356e684dceSWarner Losh.In sys/param.h
366e684dceSWarner Losh.In sys/bus.h
376e684dceSWarner Losh.Ft int
383e1cee04SRuslan Ermilov.Fn device_printf "device_t dev" "const char *fmt" ...
396e684dceSWarner Losh.Sh DESCRIPTION
406e684dceSWarner LoshThe
413e1cee04SRuslan Ermilov.Fn device_printf
426e684dceSWarner Loshfunction is a convenience interface to the
436e684dceSWarner Losh.Xr printf 9
446e684dceSWarner Loshfunction.
456e684dceSWarner LoshIt outputs the name of the
463e1cee04SRuslan Ermilov.Fa dev
476e684dceSWarner Loshdevice, followed by a colon and a space, and then what
486e684dceSWarner Losh.Xr printf 9
493e1cee04SRuslan Ermilovwould print if you passed
503e1cee04SRuslan Ermilov.Fa fmt
516e684dceSWarner Loshand the remaining arguments to it.
526e684dceSWarner Losh.Sh RETURN VALUES
536e684dceSWarner LoshThe
546e684dceSWarner Losh.Fn device_printf
556e684dceSWarner Loshfunction returns the number of characters displayed.
566e684dceSWarner Losh.Sh SEE ALSO
576e684dceSWarner Losh.Xr printf 3 ,
586e684dceSWarner Losh.Xr printf 9
59