~ubuntu-branches/ubuntu/wily/acsccid/wily

« back to all changes in this revision

Viewing changes to src/debug.h

  • Committer: Package Import Robot
  • Author(s): Godfrey Chung
  • Date: 2013-09-02 11:46:30 UTC
  • mfrom: (1.1.4)
  • Revision ID: package-import@ubuntu.com-20130902114630-lujvp61jp7wacnwv
Tags: 1.0.5-1
* New upstream release.
* Updated Standards-Version to 3.9.4.
* Updated debian/copyright.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
    debug.h: log (or not) messages using syslog
3
 
    Copyright (C) 2003-2005   Ludovic Rousseau
 
3
    Copyright (C) 2003-2008   Ludovic Rousseau
4
4
 
5
5
    This library is free software; you can redistribute it and/or
6
6
    modify it under the terms of the GNU Lesser General Public
18
18
*/
19
19
 
20
20
/*
21
 
 * $Id: debug.h 3198 2008-11-10 12:11:28Z rousseau $
 
21
 * $Id: debug.h 5916 2011-08-27 15:50:04Z rousseau $
22
22
 */
23
23
 
24
24
/*
25
25
 * DEBUG_CRITICAL("text");
26
 
 *      log "text" if (LogLevel & DEBUG_LEVEL_CRITICAL) is TRUE
 
26
 *      log "text" if (LogLevel & DEBUG_LEVEL_CRITICAL) is TRUE
27
27
 *
28
28
 * DEBUG_CRITICAL2("text: %d", 1234);
29
29
 *  log "text: 1234" if (DEBUG_LEVEL_CRITICAL & DEBUG_LEVEL_CRITICAL) is TRUE
62
62
 
63
63
#define DEBUG_CRITICAL4(fmt, data1, data2, data3) if (LogLevel & DEBUG_LEVEL_CRITICAL) Log4(PCSC_LOG_CRITICAL, fmt, data1, data2, data3)
64
64
 
 
65
#define DEBUG_CRITICAL5(fmt, data1, data2, data3, data4) if (LogLevel & DEBUG_LEVEL_CRITICAL) Log5(PCSC_LOG_CRITICAL, fmt, data1, data2, data3, data4)
 
66
 
65
67
/* DEBUG_INFO */
66
68
#define DEBUG_INFO(fmt) if (LogLevel & DEBUG_LEVEL_INFO) Log1(PCSC_LOG_INFO, fmt)
67
69