summaryrefslogtreecommitdiffstats
path: root/tapset
diff options
context:
space:
mode:
authorhien <hien>2006-03-09 21:27:14 +0000
committerhien <hien>2006-03-09 21:27:14 +0000
commitdccc09b218eefeff5b6cb27f5fd3ff8d7cefbef8 (patch)
tree6f293f4953fc0b4b55cc596cf2b374f2bd5c774f /tapset
parent3176104510e9cabba8776b44f6ed9a89fecd2aaf (diff)
downloadsystemtap-steved-dccc09b218eefeff5b6cb27f5fd3ff8d7cefbef8.tar.gz
systemtap-steved-dccc09b218eefeff5b6cb27f5fd3ff8d7cefbef8.tar.xz
systemtap-steved-dccc09b218eefeff5b6cb27f5fd3ff8d7cefbef8.zip
Fixed _stp_sockaddr_str compile error on ppc64.
Diffstat (limited to 'tapset')
-rw-r--r--tapset/aux_syscalls.stp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tapset/aux_syscalls.stp b/tapset/aux_syscalls.stp
index e9b8e1d1..48e0cd60 100644
--- a/tapset/aux_syscalls.stp
+++ b/tapset/aux_syscalls.stp
@@ -177,9 +177,15 @@ 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__)
+ 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);
+#else
snprintf(str, strlen, "{AF_PACKET, proto=%d, ind=%d, hatype=%d, pkttype=%d, halen=%d, addr=0x%llx}",
(int)sll->sll_protocol, sll->sll_ifindex, (int)sll->sll_hatype, (int)sll->sll_pkttype,
(int)sll->sll_halen, *(uint64_t *)sll->sll_addr);
+#endif
break;
}