@@ -107,7 +107,7 @@ static int link_parse_fd(int *argc, char ***argv)
107
107
108
108
fd = bpf_link_get_fd_by_id (id );
109
109
if (fd < 0 )
110
- p_err ("failed to get link with ID %d : %s" , id , strerror (errno ));
110
+ p_err ("failed to get link with ID %u : %s" , id , strerror (errno ));
111
111
return fd ;
112
112
} else if (is_prefix (* * argv , "pinned" )) {
113
113
char * path ;
@@ -404,23 +404,23 @@ static char *perf_config_hw_cache_str(__u64 config)
404
404
if (hw_cache )
405
405
snprintf (str , PERF_HW_CACHE_LEN , "%s-" , hw_cache );
406
406
else
407
- snprintf (str , PERF_HW_CACHE_LEN , "%lld -" , config & 0xff );
407
+ snprintf (str , PERF_HW_CACHE_LEN , "%llu -" , config & 0xff );
408
408
409
409
op = perf_event_name (evsel__hw_cache_op , (config >> 8 ) & 0xff );
410
410
if (op )
411
411
snprintf (str + strlen (str ), PERF_HW_CACHE_LEN - strlen (str ),
412
412
"%s-" , op );
413
413
else
414
414
snprintf (str + strlen (str ), PERF_HW_CACHE_LEN - strlen (str ),
415
- "%lld -" , (config >> 8 ) & 0xff );
415
+ "%llu -" , (config >> 8 ) & 0xff );
416
416
417
417
result = perf_event_name (evsel__hw_cache_result , config >> 16 );
418
418
if (result )
419
419
snprintf (str + strlen (str ), PERF_HW_CACHE_LEN - strlen (str ),
420
420
"%s" , result );
421
421
else
422
422
snprintf (str + strlen (str ), PERF_HW_CACHE_LEN - strlen (str ),
423
- "%lld " , config >> 16 );
423
+ "%llu " , config >> 16 );
424
424
return str ;
425
425
}
426
426
@@ -623,7 +623,7 @@ static void show_link_ifindex_plain(__u32 ifindex)
623
623
else
624
624
snprintf (devname , sizeof (devname ), "(detached)" );
625
625
if (ret )
626
- snprintf (devname , sizeof (devname ), "%s(%d )" ,
626
+ snprintf (devname , sizeof (devname ), "%s(%u )" ,
627
627
tmpname , ifindex );
628
628
printf ("ifindex %s " , devname );
629
629
}
@@ -699,7 +699,7 @@ void netfilter_dump_plain(const struct bpf_link_info *info)
699
699
if (pfname )
700
700
printf ("\n\t%s" , pfname );
701
701
else
702
- printf ("\n\tpf: %d " , pf );
702
+ printf ("\n\tpf: %u " , pf );
703
703
704
704
if (hookname )
705
705
printf (" %s" , hookname );
@@ -773,7 +773,7 @@ static void show_uprobe_multi_plain(struct bpf_link_info *info)
773
773
printf ("func_cnt %u " , info -> uprobe_multi .count );
774
774
775
775
if (info -> uprobe_multi .pid )
776
- printf ("pid %d " , info -> uprobe_multi .pid );
776
+ printf ("pid %u " , info -> uprobe_multi .pid );
777
777
778
778
printf ("\n\t%-16s %-16s %-16s" , "offset" , "ref_ctr_offset" , "cookies" );
779
779
for (i = 0 ; i < info -> uprobe_multi .count ; i ++ ) {
0 commit comments