From ebf9fe5164bebf22a426c05fff0f86bb827e0c42 Mon Sep 17 00:00:00 2001 From: zhaolei Date: Wed, 29 Aug 2007 07:21:24 +0000 Subject: 2007-08-29 Zhaolei * syscalls2.stp (sysfs): Make numbers of args in argstr always same. --- tapset/syscalls2.stp | 4 ++-- 1 file 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) } -- cgit