drivers/ec_dbg.h
author Florian Pose <fp@igh-essen.com>
Tue, 12 Jan 2010 23:40:37 +0100
branchkernel-2.4
changeset 1766 9e4d4306b641
parent 5 6f2508af550c
permissions -rw-r--r--
Closed branch.
#ifndef ECDBG_H_
#define ECDBG_H_


//#define DEBUG_SEND_RECEIVE
#define ECMASTER_DEBUG


//#include "../rs232dbg/rs232dbg.h"


#ifdef ECMASTER_DEBUG
/* note: prints function name for you */
//#  define EC_DBG(fmt, args...) SDBG_print(fmt, ## args)

//#define EC_DBG(fmt, args...) SDBG_print("%s: " fmt, __FUNCTION__ , ## args)
#define EC_DBG(fmt, args...) printk(fmt, ## args)
#else
#define EC_DBG(fmt, args...)
#endif


#endif