From 163a52d9b453bdbea0a4604b8c8e037639b49854 Mon Sep 17 00:00:00 2001 From: hunt Date: Mon, 12 Nov 2007 22:14:20 +0000 Subject: 2007-11-12 Martin Hunt * stap.1.in: Replaced references to the log() function. * stapex.5.in: Ditto. * stapfuncs.5.in: Ditto. ALso remove print and printf. They are documented in stap.1.in. --- stapfuncs.5.in | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) (limited to 'stapfuncs.5.in') diff --git a/stapfuncs.5.in b/stapfuncs.5.in index 496d5760..cd10a2ba 100644 --- a/stapfuncs.5.in +++ b/stapfuncs.5.in @@ -23,32 +23,22 @@ example2:unknown () In function "example2", do something. There is no explicit return value and take no parameters. -.SS LOGGING +.SS PRINTING .TP log:unknown (msg:string) -Log the given string to the common trace buffer. Append an implicit -end-of-line. - -.TP -print:unknown (...) -Print the given integer, string, or statistics value to -the common trace buffer. - -.TP -printf:unknown (fmt:string, ...) -Like the C printf, except valid types are limited to string ("%s") -and integer ("%d"). +Writes the given string to the common trace buffer. Append an implicit +end-of-line. Deprecated. Please use the faster print functions. .TP warn:unknown (msg:string) -Log the given string to the warning stream. Append an implicit end-of-line. +Write the given string to the warning stream. Append an implicit end-of-line. .I staprun prepends the string "WARNING:". .TP error:unknown (msg:string) -An error has occurred. Log the given string to the error stream. +An error has occurred. Write the given string to the error stream. Append an implicit end-of-line. .I staprun prepends the string "ERROR:". -- cgit From bfad7055bea18ed614901138cfe25ff3d5eb6096 Mon Sep 17 00:00:00 2001 From: zhaolei Date: Wed, 14 Nov 2007 06:39:17 +0000 Subject: 2007-11-14 Zhaolei * stapfuncs.5.in (tokenize): Change NULL to blank to avoid misunderstanding. --- stapfuncs.5.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'stapfuncs.5.in') diff --git a/stapfuncs.5.in b/stapfuncs.5.in index cd10a2ba..3802117a 100644 --- a/stapfuncs.5.in +++ b/stapfuncs.5.in @@ -110,10 +110,10 @@ string cannot be converted. .TP tokenize:string (str:string, delim:string) Return the next token in the given str string, where the tokens are delimited -by one of the characters in the delim string. If the str string is non-NULL, -it returns the first token. If the str string is NULL, it returns the next +by one of the characters in the delim string. If the str string is not blank, +it returns the first token. If the str string is blank, it returns the next token in the string passed in the previous call to tokenize. If no delimiter -is found, the entire remaining str string is returned. Returns NULL when +is found, the entire remaining str string is returned. Returns blank when no more tokens are left. .SS TIMESTAMP -- cgit