From 0a7735da99abe0741931ca51319c73f6387378f5 Mon Sep 17 00:00:00 2001 From: Zhonghu Xu Date: Tue, 8 Oct 2024 10:59:07 +0800 Subject: [PATCH] Update Signed-off-by: Zhonghu Xu --- bpf/include/common.h | 2 +- hack/format.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bpf/include/common.h b/bpf/include/common.h index 78e68b5df..23b9632b3 100644 --- a/bpf/include/common.h +++ b/bpf/include/common.h @@ -213,7 +213,7 @@ static inline int convert_v6(char *data, __u32 *ip6) __u16 ip_1 = (ip >> 0) & 0xFFFF; __u16 ip_2 = (ip >> 16) & 0xFFFF; for (int j = 0; j < 2; j++) { - __u16 ip_1 = (ip) & 0xFFFF; + __u16 ip_1 = (ip)&0xFFFF; __u8 h_1 = (ip_1 >> 0) & 0xFF; __u8 h_2 = (ip_1 >> 8) & 0xFF; *data++ = hex_digits[(h_1 >> 4) & 0xF]; diff --git a/hack/format.sh b/hack/format.sh index 8729a0021..d725f8cde 100755 --- a/hack/format.sh +++ b/hack/format.sh @@ -21,4 +21,4 @@ function install_clang_format () { install_clang_format -find ./ -path "./api/v2-c" -prune -o -name "*.[ch]" -exec clang-format -i {} \; \ No newline at end of file +find ./ -name "*.[ch]" |grep -v pb-c |xargs clang-format -i \ No newline at end of file