/alps/pcitool

To get this branch, use:
bzr branch http://suren.me/webbzr/alps/pcitool

« back to all changes in this revision

Viewing changes to driver/debug.h

  • Committer: Suren A. Chilingaryan
  • Date: 2016-03-02 18:37:30 UTC
  • Revision ID: csa@suren.me-20160302183730-nlrgi7h3yuizcizc
Restructure driver headers

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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 */