diff --git a/core/errinj.m b/core/errinj.m
index c8d297d7ef0ef7500f1c902f4307c54c6d42828f..4206659ab26cbcd1cffacb5b535e185c2a789199 100644
--- a/core/errinj.m
+++ b/core/errinj.m
@@ -41,6 +41,17 @@ struct errinj errinjs[errinj_enum_MAX] = {
 	ERRINJ_LIST(ERRINJ_MEMBER)
 };
 
+static struct errinj*
+errinj_lookup(char *name)
+{
+	int i; 
+	for (i = 0 ; i < errinj_enum_MAX ; i++) {
+		if (strcmp(errinjs[i].name, name) == 0)
+			return &errinjs[i];
+	}
+	return NULL;
+}
+
 /**
  * Get state of the error injection handle by id.
  *
@@ -55,17 +66,6 @@ errinj_get(int id)
 	return errinjs[id].state;
 }
 
-static struct errinj *
-errinj_lookup(char *name)
-{
-	int i; 
-	for (i = 0 ; i < errinj_enum_MAX ; i++) {
-		if (strcmp(errinjs[i].name, name) == 0)
-			return &errinjs[i];
-	}
-	return NULL;
-}
-
 /**
  * Get state of the error injection handle by name.
  *
diff --git a/include/errinj.h b/include/errinj.h
index 8ce84d2cecc8395299de74a69d135c705b9be3f4..cb2f48513e3dd1c9e38b023f824f6a4e27b6a516 100644
--- a/include/errinj.h
+++ b/include/errinj.h
@@ -51,13 +51,13 @@ bool errinj_set_byname(char *name, bool state);
 void errinj_info(struct tbuf *out);
 
 #ifdef NDEBUG
-	#define ERROR_INJECT(ID)
+#  define ERROR_INJECT(ID)
 #else
-	#define ERROR_INJECT(ID) \
-		do { \
-			if (errinj_get(ID) == true) \
-				tnt_raise(ErrorInjection, :#ID); \
-		} while (0)
+#  define ERROR_INJECT(ID) \
+	do { \
+		if (errinj_get(ID) == true) \
+			tnt_raise(ErrorInjection, :#ID); \
+	} while (0)
 #endif
 
 #endif /* TATRANTOOL_ERRINJ_H_INCLUDED */