iovisor / bcc

BCC - Tools for BPF-based Linux IO analysis, networking, monitoring, and more
Apache License 2.0
20.36k stars 3.86k forks source link

libbpf-tools/futexctn: Fix compliation warning due to improper format… #4863

Closed ekyooo closed 9 months ago

ekyooo commented 9 months ago

… specifier

futexctn.c:235:31: warning: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=]
     printf("    #%-2d 0x%016llx [unknown]\n", idx++, ip[i]);
                         ~~~~~~^                      ~~~~~
                         %016lx
futexctn.c:247:30: warning: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=]
    printf("    #%-2d 0x%016llx", idx++, ip[i]);
                        ~~~~~~^          ~~~~~
                        %016lx

Update the format specifier according to the data type of 'ip'.