Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
printk.h File Reference
#include <core/os.h>
#include <core/debug.h>

Go to the source code of this file.

Macros

#define NV_PRINTK_FATAL   KERN_CRIT
 
#define NV_PRINTK_ERROR   KERN_ERR
 
#define NV_PRINTK_WARN   KERN_WARNING
 
#define NV_PRINTK_INFO   KERN_INFO
 
#define NV_PRINTK_DEBUG   KERN_DEBUG
 
#define NV_PRINTK_PARANOIA   KERN_DEBUG
 
#define NV_PRINTK_TRACE   KERN_DEBUG
 
#define NV_PRINTK_SPAM   KERN_DEBUG
 
#define nv_printk(o, l, f, a...)
 
#define nv_fatal(o, f, a...)   nv_printk((o), FATAL, f, ##a)
 
#define nv_error(o, f, a...)   nv_printk((o), ERROR, f, ##a)
 
#define nv_warn(o, f, a...)   nv_printk((o), WARN, f, ##a)
 
#define nv_info(o, f, a...)   nv_printk((o), INFO, f, ##a)
 
#define nv_debug(o, f, a...)   nv_printk((o), DEBUG, f, ##a)
 
#define nv_trace(o, f, a...)   nv_printk((o), TRACE, f, ##a)
 
#define nv_spam(o, f, a...)   nv_printk((o), SPAM, f, ##a)
 
#define nv_assert(f, a...)
 

Functions

void nv_printk_ (struct nouveau_object *, const char *, int, const char *,...)
 

Macro Definition Documentation

#define nv_assert (   f,
  a... 
)
Value:
do { \
if (NV_DBG_FATAL <= CONFIG_NOUVEAU_DEBUG) \
nv_printk_(NULL, NV_PRINTK_FATAL, NV_DBG_FATAL, f "\n", ##a); \
BUG_ON(1); \
} while(0)

Definition at line 33 of file printk.h.

#define nv_debug (   o,
  f,
  a... 
)    nv_printk((o), DEBUG, f, ##a)

Definition at line 29 of file printk.h.

#define nv_error (   o,
  f,
  a... 
)    nv_printk((o), ERROR, f, ##a)

Definition at line 26 of file printk.h.

#define nv_fatal (   o,
  f,
  a... 
)    nv_printk((o), FATAL, f, ##a)

Definition at line 25 of file printk.h.

#define nv_info (   o,
  f,
  a... 
)    nv_printk((o), INFO, f, ##a)

Definition at line 28 of file printk.h.

#define nv_printk (   o,
  l,
  f,
  a... 
)
Value:
do { \
if (NV_DBG_##l <= CONFIG_NOUVEAU_DEBUG) \
nv_printk_(nv_object(o), NV_PRINTK_##l, NV_DBG_##l, f, ##a); \
} while(0)

Definition at line 20 of file printk.h.

#define NV_PRINTK_DEBUG   KERN_DEBUG

Definition at line 13 of file printk.h.

#define NV_PRINTK_ERROR   KERN_ERR

Definition at line 10 of file printk.h.

#define NV_PRINTK_FATAL   KERN_CRIT

Definition at line 9 of file printk.h.

#define NV_PRINTK_INFO   KERN_INFO

Definition at line 12 of file printk.h.

#define NV_PRINTK_PARANOIA   KERN_DEBUG

Definition at line 14 of file printk.h.

#define NV_PRINTK_SPAM   KERN_DEBUG

Definition at line 16 of file printk.h.

#define NV_PRINTK_TRACE   KERN_DEBUG

Definition at line 15 of file printk.h.

#define NV_PRINTK_WARN   KERN_WARNING

Definition at line 11 of file printk.h.

#define nv_spam (   o,
  f,
  a... 
)    nv_printk((o), SPAM, f, ##a)

Definition at line 31 of file printk.h.

#define nv_trace (   o,
  f,
  a... 
)    nv_printk((o), TRACE, f, ##a)

Definition at line 30 of file printk.h.

#define nv_warn (   o,
  f,
  a... 
)    nv_printk((o), WARN, f, ##a)

Definition at line 27 of file printk.h.

Function Documentation

void nv_printk_ ( struct nouveau_object ,
const char ,
int  ,
const char ,
  ... 
)

Definition at line 31 of file printk.c.