diff options
author | Quentin Monnet <quentin.monnet@netronome.com> | 2018-10-20 23:01:50 +0100 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2018-10-21 20:45:14 +0200 |
commit | fe8ecccc10b3adc071de05ca7af728ca1a4ac9aa (patch) | |
tree | e331ea6c91c3da4fc356cbaed02d0cceff29bdbb /tools/arch | |
parent | 06ee9da6a8b49e0e12b7a825dbe6ad243d5463e2 (diff) | |
download | linux-fe8ecccc10b3adc071de05ca7af728ca1a4ac9aa.tar.gz linux-fe8ecccc10b3adc071de05ca7af728ca1a4ac9aa.tar.bz2 linux-fe8ecccc10b3adc071de05ca7af728ca1a4ac9aa.zip |
tools: bpftool: fix completion for "bpftool map update"
When trying to complete "bpftool map update" commands, the call to
printf would print an error message that would show on the command line
if no map is found to complete the command line.
Fix it by making sure we have map ids to complete the line with, before
we try to print something.
Signed-off-by: Quentin Monnet <quentin.monnet@netronome.com>
Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'tools/arch')
0 files changed, 0 insertions, 0 deletions