bpftool: Fix typo in bash-completion
authorSong Liu <songliubraving@fb.com>
Mon, 9 Mar 2020 17:32:18 +0000 (10:32 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 9 Mar 2020 23:04:21 +0000 (00:04 +0100)
_bpftool_get_map_names => _bpftool_get_prog_names for prog-attach|detach.

Fixes: 99f9863a0c45 ("bpftool: Match maps by name")
Signed-off-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: Quentin Monnet <quentin@isovalent.com>
Link: https://lore.kernel.org/bpf/20200309173218.2739965-5-songliubraving@fb.com
tools/bpf/bpftool/bash-completion/bpftool

index 49f4ab2..a9cce9d 100644 (file)
@@ -389,7 +389,7 @@ _bpftool()
                                     _bpftool_get_prog_ids
                                     ;;
                                 name)
-                                    _bpftool_get_map_names
+                                    _bpftool_get_prog_names
                                     ;;
                                 pinned)
                                     _filedir