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