From 2338b91a59b7b9a69953b4ed15f0b3fdaf851419 Mon Sep 17 00:00:00 2001 From: UtsavBalar1231 Date: Fri, 16 Jul 2021 17:56:14 +0200 Subject: [PATCH] techpack: audio: Remove DEBUG definations find techpack/audio -type f -exec sed -i -e '/define DEBUG/d' $(git grep -l DEBUG | tr '\n' ' ') {} \; Signed-off-by: UtsavBalar1231 Change-Id: I2dfe2ebbc223cb38ede08facc1bb6316c1421272 Signed-off-by: UtsavBalar1231 --- techpack/audio/asoc/codecs/cs35l41/wm_adsp.c | 1 - .../audio/asoc/codecs/tfa98xx/inc/dbgprint.h | 17 ----------------- techpack/audio/asoc/codecs/wcd-mbhc-adc.c | 1 - techpack/audio/asoc/codecs/wcd-mbhc-v2.c | 1 - .../audio/asoc/codecs/wcd938x/wcd938x-mbhc.c | 1 - techpack/audio/asoc/codecs/wcd9xxx-irq.c | 1 - techpack/audio/dsp/elliptic/elliptic.c | 1 - techpack/audio/dsp/mius/mius.c | 1 - .../audio/include/dsp/msm-cirrus-playback.h | 1 - 9 files changed, 25 deletions(-) diff --git a/techpack/audio/asoc/codecs/cs35l41/wm_adsp.c b/techpack/audio/asoc/codecs/cs35l41/wm_adsp.c index f27ff1304dd8..677c1538e943 100755 --- a/techpack/audio/asoc/codecs/cs35l41/wm_adsp.c +++ b/techpack/audio/asoc/codecs/cs35l41/wm_adsp.c @@ -10,7 +10,6 @@ * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ -#define DEBUG #include #include #include diff --git a/techpack/audio/asoc/codecs/tfa98xx/inc/dbgprint.h b/techpack/audio/asoc/codecs/tfa98xx/inc/dbgprint.h index b314d701a6d3..fd1920e2d516 100755 --- a/techpack/audio/asoc/codecs/tfa98xx/inc/dbgprint.h +++ b/techpack/audio/asoc/codecs/tfa98xx/inc/dbgprint.h @@ -20,7 +20,6 @@ /* Debugging macro's. */ # ifndef DEBUG -# define DEBUG # endif # ifndef ASSERT @@ -52,10 +51,6 @@ # define _ERRORMSG(fmt,va...) printk(KERN_ERR PREFIX "ERROR %s:%d: "fmt,__func__,__LINE__, ##va) -# define DEBUG0(x...) MSG(x) -# define DEBUG1(x...) _DEBUG(1,x) -# define DEBUG2(x...) _DEBUG(2,x) -# define DEBUG3(x...) _DEBUG(3,x) # define ERRORMSG(x...) _ERRORMSG(x) # define PRINT(x...) printk(x) # define PRINT_ERROR(x...) printk(KERN_INFO PREFIX " **ERROR** " x) @@ -82,10 +77,6 @@ # define _ERRORMSG(fmt,...) printf(PREFIX "%s:%s:%d: "fmt,__FILE__,__FUNCTION__,__LINE__,__VA_ARGS__) -# define DEBUG0(...) MSG(__VA_ARGS__) -# define DEBUG1(...) _DEBUGMSG(1,__VA_ARGS__) -# define DEBUG2(...) _DEBUGMSG(2,__VA_ARGS__) -# define DEBUG3(...) _DEBUGMSG(3,__VA_ARGS__) # define ERRORMSG(fmt,...) _ERRORMSG(fmt,__VA_ARGS__) # define PRINT(...) printf(__VA_ARGS__) /* @@ -121,10 +112,6 @@ # define ERRORMSG(...) TB_TRACE_INF(TbTracePfx2("tfa",TB_FUNC,__VA_ARGS__)) //fprintf(stderr, PREFIX "ERROR %s:%s:%d: "fmt,__FILE__,__func__,__LINE__, ##va) -# define DEBUG0(x...) MSG(x) -# define DEBUG1(x...) _DEBUG(1,x) -# define DEBUG2(x...) _DEBUG(2,x) -# define DEBUG3(x...) _DEBUG(3,x) //# define ERRORMSG(x...) _ERRORMSG(x) # define PRINT(x...) TB_TRACE_INF(TbTracePfx2("tfa",TB_FUNC,x)) //printf(x) @@ -147,10 +134,6 @@ # define MSG(fmt,va...) printf(PREFIX "%s:%s:%d: "fmt,__FILE__,__func__,__LINE__,##va) # define _ERRORMSG(fmt,va...) fprintf(stderr, PREFIX "ERROR %s:%s:%d: "fmt,__FILE__,__func__,__LINE__, ##va) -# define DEBUG0(x...) MSG(x) -# define DEBUG1(x...) _DEBUG(1,x) -# define DEBUG2(x...) _DEBUG(2,x) -# define DEBUG3(x...) _DEBUG(3,x) # define ERRORMSG(x...) _ERRORMSG(x) # define PRINT(x...) printf(x) # define PRINT_ERROR(...) fprintf(stderr,__VA_ARGS__) diff --git a/techpack/audio/asoc/codecs/wcd-mbhc-adc.c b/techpack/audio/asoc/codecs/wcd-mbhc-adc.c index eeaaa5956b26..8284d3132c10 100755 --- a/techpack/audio/asoc/codecs/wcd-mbhc-adc.c +++ b/techpack/audio/asoc/codecs/wcd-mbhc-adc.c @@ -2,7 +2,6 @@ /* Copyright (c) 2017-2020, The Linux Foundation. All rights reserved. * Copyright (C) 2021 XiaoMi, Inc. */ -#define DEBUG #include #include #include diff --git a/techpack/audio/asoc/codecs/wcd-mbhc-v2.c b/techpack/audio/asoc/codecs/wcd-mbhc-v2.c index 7a00eb05b708..dc74bc4ff83c 100755 --- a/techpack/audio/asoc/codecs/wcd-mbhc-v2.c +++ b/techpack/audio/asoc/codecs/wcd-mbhc-v2.c @@ -3,7 +3,6 @@ * Copyright (C) 2021 XiaoMi, Inc. */ -#define DEBUG #include #include #include diff --git a/techpack/audio/asoc/codecs/wcd938x/wcd938x-mbhc.c b/techpack/audio/asoc/codecs/wcd938x/wcd938x-mbhc.c index 339b5c4ca86f..19b716dd76e6 100755 --- a/techpack/audio/asoc/codecs/wcd938x/wcd938x-mbhc.c +++ b/techpack/audio/asoc/codecs/wcd938x/wcd938x-mbhc.c @@ -3,7 +3,6 @@ * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved. * Copyright (C) 2021 XiaoMi, Inc. */ -#define DEBUG #include #include #include diff --git a/techpack/audio/asoc/codecs/wcd9xxx-irq.c b/techpack/audio/asoc/codecs/wcd9xxx-irq.c index 6e5a074c4346..8c7dd5f86ba0 100755 --- a/techpack/audio/asoc/codecs/wcd9xxx-irq.c +++ b/techpack/audio/asoc/codecs/wcd9xxx-irq.c @@ -2,7 +2,6 @@ /* Copyright (c) 2011-2019, The Linux Foundation. All rights reserved. * Copyright (C) 2021 XiaoMi, Inc. */ -#define DEBUG #include #include #include diff --git a/techpack/audio/dsp/elliptic/elliptic.c b/techpack/audio/dsp/elliptic/elliptic.c index 10d9c5651e3e..403c41ec50e4 100755 --- a/techpack/audio/dsp/elliptic/elliptic.c +++ b/techpack/audio/dsp/elliptic/elliptic.c @@ -3,7 +3,6 @@ * Copyright (C) 2021 XiaoMi, Inc. * */ -/* #define DEBUG */ #include #include #include diff --git a/techpack/audio/dsp/mius/mius.c b/techpack/audio/dsp/mius/mius.c index cfc908b2b1f8..69154766e2a0 100755 --- a/techpack/audio/dsp/mius/mius.c +++ b/techpack/audio/dsp/mius/mius.c @@ -3,7 +3,6 @@ * Copyright (C) 2021 XiaoMi, Inc. * */ -/* #define DEBUG */ #include #include #include diff --git a/techpack/audio/include/dsp/msm-cirrus-playback.h b/techpack/audio/include/dsp/msm-cirrus-playback.h index 72bea24fb96e..7067b6676ecc 100644 --- a/techpack/audio/include/dsp/msm-cirrus-playback.h +++ b/techpack/audio/include/dsp/msm-cirrus-playback.h @@ -12,7 +12,6 @@ */ #ifndef MSM_CIRRUS_PLAYBACK_H #define MSM_CIRRUS_PLAYBACK_H -#define DEBUG #include #include #include