]> sourceware.org Git - systemtap.git/commitdiff
Fixed _stp_sockaddr_str compile error on ppc64.
authorhien <hien>
Thu, 9 Mar 2006 21:27:14 +0000 (21:27 +0000)
committerhien <hien>
Thu, 9 Mar 2006 21:27:14 +0000 (21:27 +0000)
tapset/aux_syscalls.stp

index e9b8e1d1967ee4888439c922c8d8a9c972417825..48e0cd60a7a5175b42a69a4a09f9b5316db29e26 100644 (file)
@@ -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;
        }
 
This page took 0.033969 seconds and 5 git commands to generate.