diff options
-rw-r--r-- | tools/bpf/bpftool/Documentation/bpftool-prog.rst | 3 | ||||
-rw-r--r-- | tools/bpf/bpftool/prog.c | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tools/bpf/bpftool/Documentation/bpftool-prog.rst b/tools/bpf/bpftool/Documentation/bpftool-prog.rst index ac4e904b10fb..81fb97acfaeb 100644 --- a/tools/bpf/bpftool/Documentation/bpftool-prog.rst +++ b/tools/bpf/bpftool/Documentation/bpftool-prog.rst | |||
@@ -124,7 +124,8 @@ OPTIONS | |||
124 | Generate human-readable JSON output. Implies **-j**. | 124 | Generate human-readable JSON output. Implies **-j**. |
125 | 125 | ||
126 | -f, --bpffs | 126 | -f, --bpffs |
127 | Show file names of pinned programs. | 127 | When showing BPF programs, show file names of pinned |
128 | programs. | ||
128 | 129 | ||
129 | EXAMPLES | 130 | EXAMPLES |
130 | ======== | 131 | ======== |
diff --git a/tools/bpf/bpftool/prog.c b/tools/bpf/bpftool/prog.c index 5302ee282409..9785244acc7b 100644 --- a/tools/bpf/bpftool/prog.c +++ b/tools/bpf/bpftool/prog.c | |||
@@ -357,10 +357,9 @@ static void print_prog_plain(struct bpf_prog_info *info, int fd) | |||
357 | if (!hash_empty(prog_table.table)) { | 357 | if (!hash_empty(prog_table.table)) { |
358 | struct pinned_obj *obj; | 358 | struct pinned_obj *obj; |
359 | 359 | ||
360 | printf("\n"); | ||
361 | hash_for_each_possible(prog_table.table, obj, hash, info->id) { | 360 | hash_for_each_possible(prog_table.table, obj, hash, info->id) { |
362 | if (obj->id == info->id) | 361 | if (obj->id == info->id) |
363 | printf("\tpinned %s\n", obj->path); | 362 | printf("\n\tpinned %s", obj->path); |
364 | } | 363 | } |
365 | } | 364 | } |
366 | 365 | ||