Red Hat ENTERPRISE LINUX 5.4 - SYSTEMTAP LANGUAGE Reference Manual page 49

Systemtap language reference
Hide thumbs Also See for ENTERPRISE LINUX 5.4 - SYSTEMTAP LANGUAGE:
Table of Contents

Advertisement

#
0
Table 9.2. printf flag values
Width
(number)
Table 9.3. printf width values
Precision
.number
Table 9.4. printf precision values
Binary Write Examples
The following is an example of using the binary write functions:
probe begin {
for (i = 97; i < 110; i++)
Used with o, x or X specifiers
the value is preceded with 0,
0x or 0X respectively for non-
zero values.
Left-pads the number with
zeroes instead of spaces,
where padding is specified (see
width sub-specifier).
Description
Minimum number of characters
to be printed. If the value to
be printed is shorter than this
number, the result is padded
with blank spaces. The value is
not truncated even if the result
is larger.
Description
For integer specifiers (d, i,
o, u, x, X): precision
specifies the minimum number
of digits to be written. If the
value to be written is shorter
than this number, the result is
padded with leading zeros. The
value is not truncated even if
the result is longer. A precision
of 0 means that no character
is written for the value 0. For
s: this is the maximum number
of characters to be printed.
By default all characters are
printed until the ending null
character is encountered.
When no precision is
specified, the default is 1. If the
period is specified without an
explicit value for precision, 0
is assumed.
printf
41

Advertisement

Table of Contents
loading

Table of Contents