Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
zcrypt_debug.h File Reference
#include <asm/debug.h>
#include "zcrypt_api.h"

Go to the source code of this file.

Macros

#define ZCRYPT_DBF_LEN   16
 
#define DBF_ERR   3 /* error conditions */
 
#define DBF_WARN   4 /* warning conditions */
 
#define DBF_INFO   6 /* informational */
 
#define RC2WARN(rc)   ((rc) ? DBF_WARN : DBF_INFO)
 
#define ZCRYPT_DBF_COMMON(level, text...)
 
#define ZCRYPT_DBF_DEVICES(level, text...)
 
#define ZCRYPT_DBF_DEV(level, device, text...)
 

Functions

int zcrypt_debug_init (void)
 
void zcrypt_debug_exit (void)
 

Macro Definition Documentation

#define DBF_ERR   3 /* error conditions */

Definition at line 20 of file zcrypt_debug.h.

#define DBF_INFO   6 /* informational */

Definition at line 22 of file zcrypt_debug.h.

#define DBF_WARN   4 /* warning conditions */

Definition at line 21 of file zcrypt_debug.h.

#define RC2WARN (   rc)    ((rc) ? DBF_WARN : DBF_INFO)

Definition at line 24 of file zcrypt_debug.h.

#define ZCRYPT_DBF_COMMON (   level,
  text... 
)
Value:
do { \
if (zcrypt_dbf_passes(zcrypt_dbf_common, level)) { \
snprintf(debug_buffer, ZCRYPT_DBF_LEN, text); \
debug_text_event(zcrypt_dbf_common, level, \
debug_buffer); \
} \
} while (0)

Definition at line 26 of file zcrypt_debug.h.

#define ZCRYPT_DBF_DEV (   level,
  device,
  text... 
)
Value:
do { \
if (zcrypt_dbf_passes(device->dbf_area, level)) { \
snprintf(debug_buffer, ZCRYPT_DBF_LEN, text); \
debug_text_event(device->dbf_area, level, \
debug_buffer); \
} \
} while (0)

Definition at line 46 of file zcrypt_debug.h.

#define ZCRYPT_DBF_DEVICES (   level,
  text... 
)
Value:
do { \
if (zcrypt_dbf_passes(zcrypt_dbf_devices, level)) { \
snprintf(debug_buffer, ZCRYPT_DBF_LEN, text); \
debug_text_event(zcrypt_dbf_devices, level, \
debug_buffer); \
} \
} while (0)

Definition at line 36 of file zcrypt_debug.h.

#define ZCRYPT_DBF_LEN   16

Definition at line 12 of file zcrypt_debug.h.

Function Documentation

void zcrypt_debug_exit ( void  )

Definition at line 1330 of file zcrypt_api.c.

int zcrypt_debug_init ( void  )

Definition at line 1315 of file zcrypt_api.c.