aboutsummaryrefslogtreecommitdiff
path: root/cddl
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2016-10-16 19:50:10 +0000
committerMark Johnston <markj@FreeBSD.org>2016-10-16 19:50:10 +0000
commit6a4985f61cdcbd2b75cefd3d6b5f63459b87d176 (patch)
tree37ffd71acd5b08cb420dab3641e734da05b733a7 /cddl
parent31768cc1050c927eaf83f4493e881374b802691f (diff)
downloadsrc-6a4985f61cdcbd2b75cefd3d6b5f63459b87d176.tar.gz
src-6a4985f61cdcbd2b75cefd3d6b5f63459b87d176.zip
Fix tst.args1.c on LP64 platforms.
The untyped probe arguments have a width larger than int on such platforms, so printing their value without a cast can give unexpected results. MFC after: 1 week
Notes
Notes: svn path=/head/; revision=307401
Diffstat (limited to 'cddl')
-rw-r--r--cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/pid/tst.args1.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/pid/tst.args1.c b/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/pid/tst.args1.c
index 28d0677ca5d2..e26485005271 100644
--- a/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/pid/tst.args1.c
+++ b/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/pid/tst.args1.c
@@ -31,8 +31,8 @@
#include <unistd.h>
int
-go(int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6,
- int arg7, int arg8, int arg9)
+go(long arg0, long arg1, long arg2, long arg3, long arg4, long arg5, long arg6,
+ long arg7, long arg8, long arg9)
{
return (arg1);
}