OSDN Git Service

tools: ynl: replace print with NlError
authorStanislav Fomichev <sdf@google.com>
Wed, 29 Mar 2023 22:16:54 +0000 (15:16 -0700)
committerJakub Kicinski <kuba@kernel.org>
Fri, 31 Mar 2023 06:29:57 +0000 (23:29 -0700)
commit48993e22d23ae1bda1db3616f5d9baa4e7b18d35
tree680fed9f5f26efb833cf9344e60e91274e1c83fa
parenta353318ebf24100bcc7254d293cd9f041f4075dd
tools: ynl: replace print with NlError

Instead of dumping the error on the stdout, make the callee and
opportunity to decide what to do with it. This is mostly for the
ethtool testing.

Signed-off-by: Stanislav Fomichev <sdf@google.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/net/ynl/lib/ynl.py