diff options
Diffstat (limited to 'tools/bpf/bpftool/link.c')
| -rw-r--r-- | tools/bpf/bpftool/link.c | 14 | 
1 files changed, 7 insertions, 7 deletions
| diff --git a/tools/bpf/bpftool/link.c b/tools/bpf/bpftool/link.c index 5cd503b763d7..52fd2c9fac56 100644 --- a/tools/bpf/bpftool/link.c +++ b/tools/bpf/bpftool/link.c @@ -107,7 +107,7 @@ static int link_parse_fd(int *argc, char ***argv)  		fd = bpf_link_get_fd_by_id(id);  		if (fd < 0) -			p_err("failed to get link with ID %d: %s", id, strerror(errno)); +			p_err("failed to get link with ID %u: %s", id, strerror(errno));  		return fd;  	} else if (is_prefix(**argv, "pinned")) {  		char *path; @@ -404,7 +404,7 @@ static char *perf_config_hw_cache_str(__u64 config)  	if (hw_cache)  		snprintf(str, PERF_HW_CACHE_LEN, "%s-", hw_cache);  	else -		snprintf(str, PERF_HW_CACHE_LEN, "%lld-", config & 0xff); +		snprintf(str, PERF_HW_CACHE_LEN, "%llu-", config & 0xff);  	op = perf_event_name(evsel__hw_cache_op, (config >> 8) & 0xff);  	if (op) @@ -412,7 +412,7 @@ static char *perf_config_hw_cache_str(__u64 config)  			 "%s-", op);  	else  		snprintf(str + strlen(str), PERF_HW_CACHE_LEN - strlen(str), -			 "%lld-", (config >> 8) & 0xff); +			 "%llu-", (config >> 8) & 0xff);  	result = perf_event_name(evsel__hw_cache_result, config >> 16);  	if (result) @@ -420,7 +420,7 @@ static char *perf_config_hw_cache_str(__u64 config)  			 "%s", result);  	else  		snprintf(str + strlen(str), PERF_HW_CACHE_LEN - strlen(str), -			 "%lld", config >> 16); +			 "%llu", config >> 16);  	return str;  } @@ -623,7 +623,7 @@ static void show_link_ifindex_plain(__u32 ifindex)  	else  		snprintf(devname, sizeof(devname), "(detached)");  	if (ret) -		snprintf(devname, sizeof(devname), "%s(%d)", +		snprintf(devname, sizeof(devname), "%s(%u)",  			 tmpname, ifindex);  	printf("ifindex %s  ", devname);  } @@ -699,7 +699,7 @@ void netfilter_dump_plain(const struct bpf_link_info *info)  	if (pfname)  		printf("\n\t%s", pfname);  	else -		printf("\n\tpf: %d", pf); +		printf("\n\tpf: %u", pf);  	if (hookname)  		printf(" %s", hookname); @@ -773,7 +773,7 @@ static void show_uprobe_multi_plain(struct bpf_link_info *info)  	printf("func_cnt %u  ", info->uprobe_multi.count);  	if (info->uprobe_multi.pid) -		printf("pid %d  ", info->uprobe_multi.pid); +		printf("pid %u  ", info->uprobe_multi.pid);  	printf("\n\t%-16s   %-16s   %-16s", "offset", "ref_ctr_offset", "cookies");  	for (i = 0; i < info->uprobe_multi.count; i++) { | 
