/alps/pcitool

To get this branch, use:
bzr branch http://darksoft.org/webbzr/alps/pcitool
365 by Suren A. Chilingaryan
Restructure driver headers
1
#ifndef _PCIDRIVER_DEBUG_H
2
#define _PCIDRIVER_DEBUG_H
3
4
#include "config.h"
5
6
#ifdef DEBUG
7
#define mod_info( args... ) \
8
    do { printk( KERN_INFO "%s - %s : ", MODNAME , __FUNCTION__ );\
9
    printk( args ); } while(0)
10
#define mod_info_dbg( args... ) \
11
    do { printk( KERN_INFO "%s - %s : ", MODNAME , __FUNCTION__ );\
12
    printk( args ); } while(0)
13
#else
14
#define mod_info( args... ) \
15
    do { printk( KERN_INFO "%s: ", MODNAME );\
16
    printk( args ); } while(0)
17
#define mod_info_dbg( args... )
18
#endif
19
20
#define mod_crit( args... ) \
21
    do { printk( KERN_CRIT "%s: ", MODNAME );\
22
    printk( args ); } while(0)
23
24
25
#endif /* _PCIDRIVER_DEBUG_H */