Loading
bpf: fix format type mismatch warning
hulk inclusion category: bugfix bugzilla: 187826, https://gitee.com/openeuler/kernel/issues/I9K8D1 -------------------------------- Format '%u' specifies type 'unsigned int' which is nominally inconsistent with ntohs() result of promoted type 'unsigned short int'. Use '%u' for ntohs() result will trigger warnings. Fix them by using '%hu' for ntohs() result. Fixes: 877e893ac68e ("[Huawei] bpf: Add new bpf helper to get SO_ORIGINAL_DST/REPLY_SRC") Signed-off-by:Ziyang Xuan <william.xuanziyang@huawei.com> Signed-off-by:
Dong Chenchen <dongchenchen2@huawei.com>