Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
bug.h File Reference

Go to the source code of this file.

Macros

#define __WARN_printf(arg...)   do { fprintf(stderr, arg); } while (0)
 
#define WARN(condition, format...)
 
#define WARN_ONCE(condition, format...)
 

Macro Definition Documentation

#define __WARN_printf (   arg...)    do { fprintf(stderr, arg); } while (0)

Definition at line 4 of file bug.h.

#define WARN (   condition,
  format... 
)
Value:
({ \
int __ret_warn_on = !!(condition); \
if (unlikely(__ret_warn_on)) \
__WARN_printf(format); \
unlikely(__ret_warn_on); \
})

Definition at line 6 of file bug.h.

#define WARN_ONCE (   condition,
  format... 
)
Value:
({ \
static int __warned; \
int __ret_warn_once = !!(condition); \
if (unlikely(__ret_warn_once)) \
if (WARN(!__warned, format)) \
__warned = 1; \
unlikely(__ret_warn_once); \
})

Definition at line 13 of file bug.h.