summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzhaolei <zhaolei>2007-08-29 07:21:24 +0000
committerzhaolei <zhaolei>2007-08-29 07:21:24 +0000
commitebf9fe5164bebf22a426c05fff0f86bb827e0c42 (patch)
tree12f4ecc466fc7241396a379f0a367ca48cf23ac9
parentc3a95b2f2416eb035cf98d2935a9ad0f79ec4bf4 (diff)
downloadsystemtap-steved-ebf9fe5164bebf22a426c05fff0f86bb827e0c42.tar.gz
systemtap-steved-ebf9fe5164bebf22a426c05fff0f86bb827e0c42.tar.xz
systemtap-steved-ebf9fe5164bebf22a426c05fff0f86bb827e0c42.zip
2007-08-29 Zhaolei <zhaolei@cn.fujitsu.com>
* syscalls2.stp (sysfs): Make numbers of args in argstr always same.
-rw-r--r--tapset/syscalls2.stp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tapset/syscalls2.stp b/tapset/syscalls2.stp
index 292bf91e..3565bdd7 100644
--- a/tapset/syscalls2.stp
+++ b/tapset/syscalls2.stp
@@ -2465,11 +2465,11 @@ probe syscall.sysfs = kernel.function("sys_sysfs") {
arg1 = $arg1
arg2 = $arg2
if (option == 1)
- argstr = sprintf("%d, %s", $option, user_string_quoted($arg1))
+ argstr = sprintf("%d, %s, %d", $option, user_string_quoted($arg1), $arg2)
else if (option == 2)
argstr = sprintf("%d, %d, %p", $option, $arg1, $arg2)
else if (option == 3)
- argstr = sprintf("%d", $option)
+ argstr = sprintf("%d, %d, %d", $option, $arg1, $arg2)
else
argstr = sprintf("%d, %d, %d", $option, $arg1, $arg2)
}