/alps/bar_resolve

To get this branch, use:
bzr branch http://darksoft.org/webbzr/alps/bar_resolve

« back to all changes in this revision

Viewing changes to debug.h

  • Committer: Suren A. Chilingaryan
  • Date: 2016-03-02 05:45:24 UTC
  • Revision ID: csa@suren.me-20160302054524-aqefho92o0ljk3eh
Test application for resolving user-space BAR addresses

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef _TEST_DEBUG_H
 
2
#define _TEST_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 /* _TEST_DEBUG_H */