[CRIU] [PATCH 04/10] include/common: Move bug.h in

Pavel Emelyanov xemul at virtuozzo.com
Tue Oct 25 04:50:41 PDT 2016


> @@ -5,7 +5,6 @@
>  #include <stdbool.h>
>  
>  #include "common/compiler.h"
> -#include "log.h"
>  
>  #ifndef BUG_ON_HANDLER
>  
> @@ -16,6 +15,9 @@
>  #endif
>  
>  #ifndef __clang_analyzer__
> +# ifndef pr_err
> +#  error pr_err macro must be defined
> +# endif

Heh, you just removed pr_-s from lock.h. Return them there and
add the same thing into common/include/lock.h

>  # define BUG_ON_HANDLER(condition)							\
>  	do {										\
>  		if ((condition)) {							\
> 



More information about the CRIU mailing list