lisodsp_debug.h File Reference


Detailed Description

Debug facilities.

Author:
Benjamin Gerard <ben@sashipa.com>
Date:
2004/05/12
$id$

Set of macro for debugging facilities.

#include <linux/kernel.h>

Go to the source code of this file.

Kernel logs

#define liso_err(format, arg...)   printk(KERN_ERR "lisodsp: " format "\n" , ## arg)
 Kernel error level log.

#define liso_info(format, arg...)   printk(KERN_INFO "lisodsp: " format "\n" , ## arg)
 Kernel info level log.

#define liso_warn(format, arg...)   printk(KERN_WARNING "lisodsp: " format "\n" , ## arg)
 Kernel warning level log.

#define liso_dbg(format, arg...)
 Kernel debug level log.

#define liso_print   printk
 Kernel print.


Enter/Leave a function.

#define liso_enter()
 Enter a function.

#define liso_return(CODE)
 Leave a function with a value.

#define liso_return_void(CODE)
 Leave a function without return value.

#define liso_leave(CODE)   liso_return(CODE)
#define liso_leave_void()   liso_return_void()

Magic number test

#define liso_test_magic(OBJ)   (!OBJ || /* IS_ERR(OBJ) || */ OBJ->magic != OBJ)
 Test object magic value.

#define liso_test_magic_or_returns(OBJ, NAME)
 Test object magic value or exit with -EINVAL.


Defines

#define TABS_MSK   (sizeof(tabs_str)-1)

Variables

int debug
 Current debug level.

int tabs
 Current tabulation.

const char tabs_str [8]
 Tabulation string.


lisodsp logo lisodsp developer documentation
version 0.5.0
Generated on June 2004
by doxygen 1.3.7