diff options
author | guanglei <guanglei> | 2006-05-19 11:00:39 +0000 |
---|---|---|
committer | guanglei <guanglei> | 2006-05-19 11:00:39 +0000 |
commit | fcb0c6033665585a2a01a84ae13ed3be22e77edb (patch) | |
tree | 29e52ec2606d1500f9e9ae66a1ed408dc2279af7 | |
parent | 8ec4d0656253722e85ac072dda6dc5778c1e9314 (diff) | |
download | systemtap-steved-fcb0c6033665585a2a01a84ae13ed3be22e77edb.tar.gz systemtap-steved-fcb0c6033665585a2a01a84ae13ed3be22e77edb.tar.xz systemtap-steved-fcb0c6033665585a2a01a84ae13ed3be22e77edb.zip |
Patch from Mao Bibo to change %lx to %llx in snprintf of tapset/aux_syscalls.stp
to print the address in IA64
-rw-r--r-- | tapset/ChangeLog | 8 | ||||
-rw-r--r-- | tapset/aux_syscalls.stp | 2 |
2 files changed, 8 insertions, 2 deletions
diff --git a/tapset/ChangeLog b/tapset/ChangeLog index ec3ab14f..63323cc7 100644 --- a/tapset/ChangeLog +++ b/tapset/ChangeLog @@ -1,4 +1,10 @@ -2006-05-18 Li Guanglei <guanglei@cn.ibm.com> +2006-05-19 Li Guanglei <guanglei@cn.ibm.com> + + Patch from Mao Bibo (bibo.mao@intel.com) + * tapset/aux_syscalls.stp: change %lx to %llx in snprintf to + print the address in IA64 + +2006-05-19 Li Guanglei <guanglei@cn.ibm.com> * tapset/ioscheduler.stp: change . to -> operator to get the elevator name diff --git a/tapset/aux_syscalls.stp b/tapset/aux_syscalls.stp index 925c87d6..aa0b8039 100644 --- a/tapset/aux_syscalls.stp +++ b/tapset/aux_syscalls.stp @@ -177,7 +177,7 @@ void _stp_sockaddr_str(char *str, const int strlen, char *buf, int len) { /* FIXME. This needs tested */ struct sockaddr_ll *sll = (struct sockaddr_ll *)buf; -#if defined(__powerpc__) +#if defined(__powerpc__) || defined(__ia64__) snprintf(str, strlen, "{AF_PACKET, proto=%d, ind=%d, hatype=%d, pkttype=%d, halen=%d, addr=0x%lx}", (int)sll->sll_protocol, sll->sll_ifindex, (int)sll->sll_hatype, (int)sll->sll_pkttype, (int)sll->sll_halen, *(uint64_t *)sll->sll_addr); |