Re: [PATCH bpf] tools: bpftool: don't use hex numbers in JSON output

2018-03-24 Thread Alexei Starovoitov
On Fri, Mar 23, 2018 at 07:45:12PM -0700, Jakub Kicinski wrote: > 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 > Reviewed-by: Quentin Monnet > Fixes: 831a0aafe5c3 ("tools: bpftool

[PATCH bpf] tools: bpftool: don't use hex numbers in JSON output

2018-03-23 Thread Jakub Kicinski
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 Reviewed-by: Quentin Monnet Fixes: 831a0aafe5c3 ("tools: bpftool: add JSON output for `bpftool map *` commands") --- tools/bpf/bpftool/map