diff options
Diffstat (limited to 'tools/bpf/bpftool/link.c')
| -rw-r--r-- | tools/bpf/bpftool/link.c | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/bpf/bpftool/link.c b/tools/bpf/bpftool/link.c index 1b793759170e..a89f09e3c848 100644 --- a/tools/bpf/bpftool/link.c +++ b/tools/bpf/bpftool/link.c @@ -106,7 +106,7 @@ static int show_link_close_json(int fd, struct bpf_link_info *info)  	switch (info->type) {  	case BPF_LINK_TYPE_RAW_TRACEPOINT:  		jsonw_string_field(json_wtr, "tp_name", -				   (const char *)info->raw_tracepoint.tp_name); +				   u64_to_ptr(info->raw_tracepoint.tp_name));  		break;  	case BPF_LINK_TYPE_TRACING:  		err = get_prog_info(info->prog_id, &prog_info); @@ -185,7 +185,7 @@ static int show_link_close_plain(int fd, struct bpf_link_info *info)  	switch (info->type) {  	case BPF_LINK_TYPE_RAW_TRACEPOINT:  		printf("\n\ttp '%s'  ", -		       (const char *)info->raw_tracepoint.tp_name); +		       (const char *)u64_to_ptr(info->raw_tracepoint.tp_name));  		break;  	case BPF_LINK_TYPE_TRACING:  		err = get_prog_info(info->prog_id, &prog_info);  |