diff options
author | Klement Sekera <klement.sekera@gmail.com> | 2024-04-14 13:45:42 +0200 |
---|---|---|
committer | Dave Wallace <dwallacelf@gmail.com> | 2024-07-18 02:25:41 +0000 |
commit | 357291142bf76963e7bdbaed5ebd912254c1e0ad (patch) | |
tree | a5eda7c03db77a18705a26dcf972752047344749 | |
parent | 25140013770d219db1b4044d78b72199d372b61b (diff) |
vnet: print Success for API errno 0 instead of UNKNOWN
Type: improvement
Change-Id: I8c5bfc82c1db1213eb43072853f8500ce1d2ee92
Signed-off-by: Klement Sekera <klement.sekera@gmail.com>
-rw-r--r-- | src/vnet/error.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vnet/error.c b/src/vnet/error.c index 473d11135f1..7ae32962132 100644 --- a/src/vnet/error.c +++ b/src/vnet/error.c @@ -37,6 +37,10 @@ u8 * format_vnet_api_errno (u8 *s, va_list *args) { vnet_api_error_t api_error = va_arg (*args, vnet_api_error_t); + + if (0 == api_error) + return format (s, "Success"); + #ifdef _ #undef _ #endif |