diff options
Diffstat (limited to 'vppinfra/vppinfra/error_bootstrap.h')
-rw-r--r-- | vppinfra/vppinfra/error_bootstrap.h | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/vppinfra/vppinfra/error_bootstrap.h b/vppinfra/vppinfra/error_bootstrap.h index b7cfac79768..3fa0a18ec9f 100644 --- a/vppinfra/vppinfra/error_bootstrap.h +++ b/vppinfra/vppinfra/error_bootstrap.h @@ -41,12 +41,13 @@ /* Bootstrap include so that #include <vppinfra/mem.h> can include e.g. <vppinfra/mheap.h> which depends on <vppinfra/vec.h>. */ -#include <vppinfra/clib.h> /* for uword */ +#include <vppinfra/clib.h> /* for uword */ -enum { - CLIB_ERROR_FATAL = 1 << 0, - CLIB_ERROR_ABORT = 1 << 1, - CLIB_ERROR_WARNING = 1 << 2, +enum +{ + CLIB_ERROR_FATAL = 1 << 0, + CLIB_ERROR_ABORT = 1 << 1, + CLIB_ERROR_WARNING = 1 << 2, CLIB_ERROR_ERRNO_VALID = 1 << 16, CLIB_ERROR_NO_RATE_LIMIT = 1 << 17, }; @@ -62,9 +63,8 @@ enum { Code specifies whether to call exit, abort or nothing at all (for non-fatal warnings). */ extern void _clib_error (int code, - char * function_name, - uword line_number, - char * format, ...); + char *function_name, + uword line_number, char *format, ...); #define ASSERT(truth) \ do { \ @@ -87,3 +87,11 @@ do { \ } while (0) #endif /* included_error_bootstrap_h */ + +/* + * fd.io coding-style-patch-verification: ON + * + * Local Variables: + * eval: (c-set-style "gnu") + * End: + */ |