/alps/kmm

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

« back to all changes in this revision

Viewing changes to debug.h

  • Committer: Suren A. Chilingaryan
  • Date: 2015-12-02 18:03:58 UTC
  • Revision ID: csa@suren.me-20151202180358-3k401zf10ltlpj0m
Initial import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef _KMM_DEBUG_H
 
2
#define _KMM_DEBUG_H
 
3
 
 
4
#ifdef DEBUG
 
5
 #define mod_info( args... ) \
 
6
    do { printk( KERN_INFO "%s - %s : ", MODNAME , __FUNCTION__ );\
 
7
    printk( args ); } while(0)
 
8
 #define mod_info_dbg( args... ) \
 
9
    do { printk( KERN_INFO "%s - %s : ", MODNAME , __FUNCTION__ );\
 
10
    printk( args ); } while(0)
 
11
#else
 
12
 #define mod_info( args... ) \
 
13
    do { printk( KERN_INFO "%s: ", MODNAME );\
 
14
    printk( args ); } while(0)
 
15
 #define mod_info_dbg( args... ) 
 
16
#endif
 
17
 
 
18
 
 
19
#endif /* _KMM_DEBUG_H */