summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tapset/ChangeLog5
-rw-r--r--tapset/logging.stp5
-rw-r--r--tapset/string.stp2
3 files changed, 11 insertions, 1 deletions
diff --git a/tapset/ChangeLog b/tapset/ChangeLog
index 8c85e648..00b372d1 100644
--- a/tapset/ChangeLog
+++ b/tapset/ChangeLog
@@ -1,3 +1,8 @@
+2006-09-18 Martin Hunt <hunt@redhat.com>
+
+ * logging.stp (stp_print_binary): New function.
+ * string.stp: Fix docs.
+
2006-09-12 Li Guanglei <guanglei@cn.ibm.com>
From Li Xuepeng <xuepengl@cn.ibm.com>
diff --git a/tapset/logging.stp b/tapset/logging.stp
index dcd9741a..3b0f9df5 100644
--- a/tapset/logging.stp
+++ b/tapset/logging.stp
@@ -31,3 +31,8 @@ function error (msg:string) %{
CONTEXT->last_error = THIS->msg;
CONTEXT->last_stmt = NULL;
%}
+
+function stp_print_binary(n:long, arg1:long, arg2:long, arg3:long, arg4:long) %{
+ _stp_print_binary (THIS->n, THIS->arg1, THIS->arg2, THIS->arg3, THIS->arg4);
+%}
+
diff --git a/tapset/string.stp b/tapset/string.stp
index f1666afa..77925d0d 100644
--- a/tapset/string.stp
+++ b/tapset/string.stp
@@ -17,7 +17,7 @@ function strlen:long(s:string) %{ /* pure */
* @param str string
* @param start Starting position. 0 = start of the string
* @param length Length of string to return.
-* @return Returns the length of the string.
+* @return Returns the substring.
*/
function substr:string(str:string,start:long, length:long) %{ /* pure */
int length = THIS->length + 1 > MAXSTRINGLEN ? MAXSTRINGLEN : THIS->length + 1;