mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-29 05:04:50 +00:00
A bit of markup and spelling fixes.
This commit is contained in:
parent
b940897514
commit
15c613547e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=76329
|
@ -29,9 +29,7 @@
|
|||
.Dt PRINTF 9
|
||||
.Os
|
||||
.Sh NAME
|
||||
.Nm printf ,
|
||||
.Nm uprintf ,
|
||||
.Nm tprintf
|
||||
.Nm printf , uprintf , tprintf
|
||||
.Nd formatted output conversion
|
||||
.Sh SYNOPSIS
|
||||
.Fd #include <sys/types.h>
|
||||
|
@ -51,7 +49,7 @@ family of functions.
|
|||
The three functions each use a different output stream.
|
||||
The
|
||||
.Fn uprintf
|
||||
function outputs to the currect process' controlling tty, while
|
||||
function outputs to the current process' controlling tty, while
|
||||
.Fn printf
|
||||
writes to the console as well as to the logging facility.
|
||||
The
|
||||
|
@ -73,9 +71,9 @@ adds two other conversion specifiers.
|
|||
The
|
||||
.Cm \&%b
|
||||
identifier expects two arguments: an
|
||||
.Ft int
|
||||
.Vt int
|
||||
and a
|
||||
.Ft char * .
|
||||
.Vt "char *" .
|
||||
These are used as a register value and a print mask for decoding bitmasks.
|
||||
The print mask is made up of two parts: the base and the
|
||||
arguments.
|
||||
|
@ -87,15 +85,17 @@ bit this identifier describes.
|
|||
The rest of the identifier is a string of characters containing the name of
|
||||
the bit.
|
||||
The string is terminated by either the bit number at the start of the next
|
||||
bit identifier or nul for the last bit identifier.
|
||||
bit identifier or
|
||||
.Dv NUL
|
||||
for the last bit identifier.
|
||||
.Pp
|
||||
The
|
||||
.Cm \&%D
|
||||
identifier is meant to assist in hexdumps.
|
||||
It requires two arguments: a
|
||||
.Ft u_char *
|
||||
.Vt "u_char *"
|
||||
pointer and a
|
||||
.Ft char *
|
||||
.Vt "char *"
|
||||
string.
|
||||
The memory pointed to be the pointer is output in hexadecimal one byte at
|
||||
a time.
|
||||
|
|
Loading…
Reference in a new issue