From: Klement Sekera Date: Sun, 14 Apr 2024 11:45:42 +0000 (+0200) Subject: vnet: print Success for API errno 0 instead of UNKNOWN X-Git-Tag: v25.02-rc0~124 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=357291142bf76963e7bdbaed5ebd912254c1e0ad;p=vpp.git vnet: print Success for API errno 0 instead of UNKNOWN Type: improvement Change-Id: I8c5bfc82c1db1213eb43072853f8500ce1d2ee92 Signed-off-by: Klement Sekera --- 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