code cleanup: remove unused debug_printk()
The dahdi_echocan_* modules had an unused debug_printk() macro. Remove them because: * They were unused * There were multiple definitions * They were unsafe. Someone doing an if(foo) debug_printk(...); else do_something(); may be surprised ;-) * They used 'debug' as a debug level, while the rest of DAHDI debug macros treat it as a bit-field. Leave only a single definition in wcte12xp/base.c which is safe. Signed-off-by: Oron Peled <oron.peled@xorcom.com> Acked-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com> git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@10459 a0bf4364-ded3-4de4-8d8a-66a801d63aff
This commit is contained in:
parent
9f37999c19
commit
1c6d3ad23c
@ -38,8 +38,6 @@
|
|||||||
|
|
||||||
static int debug;
|
static int debug;
|
||||||
|
|
||||||
#define debug_printk(level, fmt, args...) if (debug >= level) printk("%s (%s): " fmt, THIS_MODULE->name, __FUNCTION__, ## args)
|
|
||||||
|
|
||||||
static int echo_can_create(struct dahdi_chan *chan, struct dahdi_echocanparams *ecp,
|
static int echo_can_create(struct dahdi_chan *chan, struct dahdi_echocanparams *ecp,
|
||||||
struct dahdi_echocanparam *p, struct dahdi_echocan_state **ec);
|
struct dahdi_echocanparam *p, struct dahdi_echocan_state **ec);
|
||||||
static void echo_can_free(struct dahdi_chan *chan, struct dahdi_echocan_state *ec);
|
static void echo_can_free(struct dahdi_chan *chan, struct dahdi_echocan_state *ec);
|
||||||
|
@ -44,8 +44,6 @@
|
|||||||
static int debug;
|
static int debug;
|
||||||
static int aggressive;
|
static int aggressive;
|
||||||
|
|
||||||
#define debug_printk(level, fmt, args...) if (debug >= level) printk(KERN_DEBUG "%s (%s): " fmt, THIS_MODULE->name, __FUNCTION__, ## args)
|
|
||||||
|
|
||||||
/* Uncomment to provide summary statistics for overall echo can performance every 4000 samples */
|
/* Uncomment to provide summary statistics for overall echo can performance every 4000 samples */
|
||||||
/* #define MEC2_STATS 4000 */
|
/* #define MEC2_STATS 4000 */
|
||||||
|
|
||||||
|
@ -44,8 +44,6 @@
|
|||||||
static int debug;
|
static int debug;
|
||||||
static int aggressive;
|
static int aggressive;
|
||||||
|
|
||||||
#define debug_printk(level, fmt, args...) if (debug >= level) printk("%s (%s): " fmt, THIS_MODULE->name, __FUNCTION__, ## args)
|
|
||||||
|
|
||||||
#define ABS(a) abs(a!=-32768?a:-32767)
|
#define ABS(a) abs(a!=-32768?a:-32767)
|
||||||
|
|
||||||
#define RESTORE_COEFFS {\
|
#define RESTORE_COEFFS {\
|
||||||
|
@ -48,8 +48,6 @@
|
|||||||
|
|
||||||
static int debug;
|
static int debug;
|
||||||
|
|
||||||
#define debug_printk(level, fmt, args...) if (debug >= level) printk(KERN_DEBUG "%s (%s): " fmt, THIS_MODULE->name, __FUNCTION__, ## args)
|
|
||||||
|
|
||||||
#include "arith.h"
|
#include "arith.h"
|
||||||
|
|
||||||
#ifndef NULL
|
#ifndef NULL
|
||||||
|
@ -47,8 +47,6 @@
|
|||||||
|
|
||||||
static int debug;
|
static int debug;
|
||||||
|
|
||||||
#define debug_printk(level, fmt, args...) if (debug >= level) printk(KERN_DEBUG "%s (%s): " fmt, THIS_MODULE->name, __FUNCTION__, ## args)
|
|
||||||
|
|
||||||
#include "fir.h"
|
#include "fir.h"
|
||||||
|
|
||||||
#ifndef NULL
|
#ifndef NULL
|
||||||
|
@ -31,8 +31,6 @@
|
|||||||
|
|
||||||
static int debug;
|
static int debug;
|
||||||
|
|
||||||
#define debug_printk(level, fmt, args...) if (debug >= level) printk(KERN_DEBUG "%s (%s): " fmt, THIS_MODULE->name, __FUNCTION__, ## args)
|
|
||||||
|
|
||||||
#include "hpec_user.h"
|
#include "hpec_user.h"
|
||||||
#include "hpec.h"
|
#include "hpec.h"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user