Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
2514001
)
vnet: print Success for API errno 0 instead of UNKNOWN
36/40836/3
author
Klement Sekera
<
[email protected]
>
Sun, 14 Apr 2024 11:45:42 +0000
(13:45 +0200)
committer
Dave Wallace
<
[email protected]
>
Thu, 18 Jul 2024 02:25:41 +0000
(
02:25
+0000)
Type: improvement
Change-Id: I8c5bfc82c1db1213eb43072853f8500ce1d2ee92
Signed-off-by: Klement Sekera <
[email protected]
>
src/vnet/error.c
patch
|
blob
|
history
diff --git
a/src/vnet/error.c
b/src/vnet/error.c
index
473d111
..
7ae3296
100644
(file)
--- 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