summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorroot <root@toddy.(none)>2008-12-05 11:15:06 -0500
committerroot <root@toddy.(none)>2008-12-05 11:15:06 -0500
commitb58523345ea01d313672f6896b02b447b6d1d82a (patch)
tree93bdefeeca9c3db69c5d5804ec32524ead923155 /doc
parent3e122bea3dd507d0d355e4dead7fcbd73b72c0d9 (diff)
downloadsystemtap-steved-b58523345ea01d313672f6896b02b447b6d1d82a.tar.gz
systemtap-steved-b58523345ea01d313672f6896b02b447b6d1d82a.tar.xz
systemtap-steved-b58523345ea01d313672f6896b02b447b6d1d82a.zip
PR7051: Remove broken printf %n directive support
Diffstat (limited to 'doc')
-rw-r--r--doc/langref.tex14
1 files changed, 4 insertions, 10 deletions
diff --git a/doc/langref.tex b/doc/langref.tex
index 5db82550..3af2bd15 100644
--- a/doc/langref.tex
+++ b/doc/langref.tex
@@ -1858,16 +1858,10 @@ p&
Pointer address&
0x0000000000bc614e\tabularnewline
\hline
-n&
-Writes a binary value that is the total length of the string written by printf.
-The field width specifies the number of bytes to write. Valid specifications
-are \%n, \%1n, \%2n and \%4n. The default is 2.&
-See below\tabularnewline
-\hline
b&
Writes a binary value as text. The field width specifies the number of bytes
to write. Valid specifications are \%b, \%1b, \%2b, \%4b and \%8b. The default
-width is 4 (32-bits).&
+width is 8 (64-bits).&
See below\tabularnewline
\hline
\%&
@@ -1987,7 +1981,7 @@ Another example:
\begin{vindent}
\begin{verbatim}
-stap -e 'probe begin{printf("%1n%b%b", 0xc0dedbad, \
+stap -e 'probe begin{printf("%b%b", 0xc0dedbad, \
0x12345678);exit()}' | hexdump -C
\end{verbatim}
@@ -1996,8 +1990,8 @@ This prints:
\begin{vindent}
\begin{verbatim}
-00000000 08 ad db de c0 78 56 34 12 |.....xV4.|
-00000009
+00000000 ad db de c0 00 00 00 00 78 56 34 12 00 00 00 00 |........xV4.....|
+00000010
\end{verbatim}
\end{vindent}
Another example: