diff options
author | Stan Cox <scox@redhat.com> | 2009-06-18 11:37:30 -0400 |
---|---|---|
committer | Stan Cox <scox@redhat.com> | 2009-06-18 11:37:30 -0400 |
commit | 76248b8b52d687abb52c5e69eda7927f84d2e483 (patch) | |
tree | 90b1cce09971d648b95795fdddfd112559bd0182 /includes/sys | |
parent | 0e5cd254d3ef39cef5fa6ba56231604274fd85cd (diff) | |
download | systemtap-steved-76248b8b52d687abb52c5e69eda7927f84d2e483.tar.gz systemtap-steved-76248b8b52d687abb52c5e69eda7927f84d2e483.tar.xz systemtap-steved-76248b8b52d687abb52c5e69eda7927f84d2e483.zip |
Cast STAP_PROBE1 parameter.
* sdt.h (STAP_PROBE1): Add cast of parm1 for narrower signed types.
Diffstat (limited to 'includes/sys')
-rw-r--r-- | includes/sys/sdt.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/includes/sys/sdt.h b/includes/sys/sdt.h index 10639d9c..0f86cc3b 100644 --- a/includes/sys/sdt.h +++ b/includes/sys/sdt.h @@ -257,10 +257,10 @@ do { \ syscall (STAP_SYSCALL, #probe, GETTID); \ } while (0) -#define STAP_PROBE1_(probe,label,parm1) \ -do { \ - STAP_PROBE_DATA(probe,STAP_GUARD,1); \ - syscall (STAP_SYSCALL, #probe, GETTID, parm1); \ +#define STAP_PROBE1_(probe,label,parm1) \ +do { \ + STAP_PROBE_DATA(probe,STAP_GUARD,1); \ + syscall (STAP_SYSCALL, #probe, GETTID, (size_t)parm1); \ } while (0) #define STAP_PROBE2_(probe,label,parm1,parm2) \ |