VPP-327 Coding standards cleanup for vppinfra
[vpp.git] / vppinfra / vppinfra / error_bootstrap.h
index b7cfac7..3fa0a18 100644 (file)
 /* 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:
+ */