From b58523345ea01d313672f6896b02b447b6d1d82a Mon Sep 17 00:00:00 2001 From: root Date: Fri, 5 Dec 2008 11:15:06 -0500 Subject: PR7051: Remove broken printf %n directive support --- stap.1.in | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'stap.1.in') 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: - 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 -- cgit