]> git.baikalelectronics.ru Git - kernel.git/commit
tools: bpftool: don't use hex numbers in JSON output
authorJakub Kicinski <jakub.kicinski@netronome.com>
Sat, 24 Mar 2018 02:45:12 +0000 (19:45 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Sat, 24 Mar 2018 17:38:59 +0000 (10:38 -0700)
commit1725da33ea856d8550da3f302f42df81fa12e8e4
tree39a0326ccea069d0a4efa15aef78f62a7bd28b4d
parent72ea2b12d14bf90a9a68b11ac32f55017b6e4a42
tools: bpftool: don't use hex numbers in JSON output

JSON does not accept hex numbers with 0x prefix.  Simply print
as decimal numbers, JSON should be primarily machine-readable.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Quentin Monnet <quentin.monnet@netronome.com>
Fixes: 93f4ba7c6b69 ("tools: bpftool: add JSON output for `bpftool map *` commands")
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/bpf/bpftool/map.c