summaryrefslogtreecommitdiffstats
path: root/tapset
diff options
context:
space:
mode:
authordwilder <dwilder>2007-01-18 22:50:28 +0000
committerdwilder <dwilder>2007-01-18 22:50:28 +0000
commitcb54ae9353bd1f970486c654771e21c53cfdffa1 (patch)
tree5f2fb2c1ca7b436d0828b556152dd68c036e4597 /tapset
parent61dd006a1a391c25cb85fa5bf2b9187d873e4918 (diff)
downloadsystemtap-steved-cb54ae9353bd1f970486c654771e21c53cfdffa1.tar.gz
systemtap-steved-cb54ae9353bd1f970486c654771e21c53cfdffa1.tar.xz
systemtap-steved-cb54ae9353bd1f970486c654771e21c53cfdffa1.zip
In _stp_sockaddr_str() s390x needs sockaddr_ll.sll_addr printed as a long int instead of long long int.
Diffstat (limited to 'tapset')
-rw-r--r--tapset/aux_syscalls.stp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tapset/aux_syscalls.stp b/tapset/aux_syscalls.stp
index 951dc293..4d578fd5 100644
--- a/tapset/aux_syscalls.stp
+++ b/tapset/aux_syscalls.stp
@@ -297,7 +297,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__) || defined(__ia64__)
+#if defined(__powerpc__) || defined(__ia64__) || defined(__s390x__)
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);