]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
tools: ynl: cli: make the output compact
authorJakub Kicinski <kuba@kernel.org>
Sat, 31 Jan 2026 20:30:29 +0000 (12:30 -0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 3 Feb 2026 01:06:14 +0000 (17:06 -0800)
commit71a58ec6672fbb7ae9f1b4a8ee1b5c352af93c0d
tree4968a27ed035ebdac3c8a0057a2f98dc9696785f
parentba9c5611f0888f143ff5faf28a73eac6ea20eaaf
tools: ynl: cli: make the output compact

Make the default (non-JSON) output more compact. Looking at RSS
context dumps is pretty much impossible without this, because
default print shows the indirection table with line per entry:

  'indir': [0,
            1,
            2,
    ...

And indirection tables have 100-200 entries each.

The compact output is far more readable:

    'indir': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
              16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29,

Reviewed-by: Donald Hunter <donald.hunter@gmail.com>
Link: https://patch.msgid.link/20260131203029.1173492-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/net/ynl/pyynl/cli.py