Update to use caa_likely/caa_unlikely from urcu 0.6.6
[ust.git] / include / ust / usterr-signal-safe.h
index 71e7437a9c58dbb6a9d84bcfa4acb21598ac6cbb..998d8d8960d78ae8f039ce21d87ea2cb0827823e 100644 (file)
@@ -147,12 +147,12 @@ static inline void __attribute__ ((format (printf, 1, 2)))
 
 #define BUG_ON(condition)                                      \
        do {                                                    \
-               if (unlikely(condition))                        \
+               if (caa_unlikely(condition))                    \
                        ERR("condition not respected (BUG) on line %s:%d", __FILE__, __LINE__); \
        } while(0)
 #define WARN_ON(condition)                                     \
        do {                                                    \
-               if (unlikely(condition))                        \
+               if (caa_unlikely(condition))                    \
                        WARN("condition not respected on line %s:%d", __FILE__, __LINE__); \
        } while(0)
 #define WARN_ON_ONCE(condition) WARN_ON(condition)
This page took 0.023203 seconds and 4 git commands to generate.