summaryrefslogtreecommitdiffstats
path: root/stap.1.in
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 /stap.1.in
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 'stap.1.in')
-rw-r--r--stap.1.in9
1 files changed, 2 insertions, 7 deletions
diff --git a/stap.1.in b/stap.1.in
index d4f8946a..2e954ec7 100644
--- a/stap.1.in
+++ b/stap.1.in
@@ -654,9 +654,6 @@ Signed decimal.
%m
Safely reads kernel memory at the given address, outputs its content. The width specifier determines the number of bytes to read. Default is 1 byte.
.TP
-%n
-Parameterless. Used in conjunction with %b. Writes a binary value which is the total remaning size of the binary blob being written. The width specifier determines the number of bytes this 'length value' will written as; valid specifiers are %n %1n %2n %4n. Default (%n) is 2 bytes. See example below.
-.TP
%o
Unsigned octal.
.TP
@@ -694,10 +691,8 @@ Examples:
Prints: a is alice; 1234abcd or 1234ABCD or 0x1234abcd; -1 or 18446744073709551615\\n
printf("2 bytes of kernel buffer at address %p: %2m", p, p)
Prints: 2 byte of kernel buffer at address 0x1234abcd: <binary data>
- printf("%1n%4b", p)
- Prints (these values as binary data): 0x4 0x1234abcd
- * the first byte (due to the 1 on %n) is the remaning number of bytes written by printf
- * the subsequent 4 bytes is the value due to %b
+ printf("%4b", p)
+ Prints (these values as binary data): 0x1234abcd
.ESAMPLE
.SS STATISTICS