tools: ynl: move the new line in NlMsg __repr__
authorJakub Kicinski <kuba@kernel.org>
Tue, 5 Mar 2024 05:33:07 +0000 (21:33 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Mar 2024 12:07:43 +0000 (12:07 +0000)
commit7df7231d6a6b68b4b68fb4e38a4639997a208fd2
treeac0f0f097cb5a78b89a7bef8f51c52799c5347e7
parentb206acf1ffdc505844e6f7dc26848db068e45221
tools: ynl: move the new line in NlMsg __repr__

We add the new line even if message has no error or extack,
which leads to print(nl_msg) ending with two new lines.

Reviewed-by: Donald Hunter <donald.hunter@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/net/ynl/lib/ynl.py