treewide: remove some logging and debug
Signed-off-by: engstk <eng.stk@sapo.pt>
This commit is contained in:
parent
f6020d3377
commit
4795218025
@ -54,15 +54,7 @@ extern int msm_cvp_clock_voting;
|
||||
extern bool msm_cvp_syscache_disable;
|
||||
|
||||
#define dprintk(__level, __fmt, arg...) \
|
||||
do { \
|
||||
if (msm_cvp_debug & __level) { \
|
||||
if (msm_cvp_debug_out == CVP_OUT_PRINTK) { \
|
||||
pr_info(CVP_DBG_TAG __fmt, \
|
||||
get_debug_level_str(__level), \
|
||||
## arg); \
|
||||
} \
|
||||
} \
|
||||
} while (0)
|
||||
pr_debug(CVP_DBG_TAG __fmt, get_debug_level_str(__level), ## arg)
|
||||
|
||||
#define MSM_CVP_ERROR(value) \
|
||||
do { if (value) \
|
||||
|
@ -22,6 +22,8 @@
|
||||
#define MSM_BUS_RSC_DISP 8001
|
||||
#define BCM_TCS_CMD_ACV_APPS 0x8
|
||||
|
||||
#define DEBUG_REC_TRANSACTION 0
|
||||
|
||||
struct bus_search_type {
|
||||
struct list_head link;
|
||||
struct list_head node_list;
|
||||
@ -1783,7 +1785,8 @@ static int update_bw_adhoc(struct msm_bus_client_handle *cl, u64 ab, u64 ib)
|
||||
if (!strcmp(test_cl, cl->name))
|
||||
log_transaction = true;
|
||||
|
||||
msm_bus_dbg_rec_transaction(cl, ab, ib);
|
||||
if (DEBUG_REC_TRANSACTION)
|
||||
msm_bus_dbg_rec_transaction(cl, ab, ib);
|
||||
|
||||
if (cl->active_only) {
|
||||
if ((cl->cur_act_ib == ib) && (cl->cur_act_ab == ab)) {
|
||||
@ -1852,7 +1855,9 @@ static int update_bw_context(struct msm_bus_client_handle *cl, u64 act_ab,
|
||||
|
||||
if (!dual_ab && !dual_ib)
|
||||
cl->active_only = true;
|
||||
msm_bus_dbg_rec_transaction(cl, cl->cur_act_ab, cl->cur_dual_ib);
|
||||
if (DEBUG_REC_TRANSACTION)
|
||||
msm_bus_dbg_rec_transaction(cl, cl->cur_act_ab,
|
||||
cl->cur_dual_ib);
|
||||
ret = update_path(cl->mas_dev, cl->slv, act_ib, act_ab, dual_ib,
|
||||
dual_ab, cl->cur_act_ab, cl->cur_act_ab,
|
||||
cl->first_hop, cl->active_only);
|
||||
|
@ -44,10 +44,13 @@
|
||||
for (index = 0; (index < (display)->ctrl_count) &&\
|
||||
(index < MAX_DSI_CTRLS_PER_DISPLAY); index++)
|
||||
|
||||
#define DSI_WARN(fmt, ...)
|
||||
#define DSI_ERR(fmt, ...)
|
||||
#define DSI_INFO(fmt, ...)
|
||||
#define DSI_DEBUG(fmt, ...)
|
||||
#define DSI_WARN(fmt, ...) DRM_WARN("[msm-dsi-warn]: "fmt, ##__VA_ARGS__)
|
||||
#define DSI_ERR(fmt, ...) DRM_DEV_DEBUG(NULL, "[%d]: " fmt, __LINE__, \
|
||||
##__VA_ARGS__)
|
||||
#define DSI_INFO(fmt, ...) DRM_DEV_DEBUG(NULL, "[msm-dsi-info]: "fmt, \
|
||||
##__VA_ARGS__)
|
||||
#define DSI_DEBUG(fmt, ...) DRM_DEV_DEBUG(NULL, "[msm-dsi-debug]: "fmt, \
|
||||
##__VA_ARGS__)
|
||||
/**
|
||||
* enum dsi_pixel_format - DSI pixel formats
|
||||
* @DSI_PIXEL_FORMAT_RGB565:
|
||||
|
@ -88,29 +88,8 @@ extern int msm_vidc_err_recovery_disable;
|
||||
extern struct log_cookie ctxt[MAX_SUPPORTED_INSTANCES];
|
||||
|
||||
#define dprintk(__level, sid, __fmt, ...) \
|
||||
do { \
|
||||
if (is_print_allowed(sid, __level)) { \
|
||||
if (msm_vidc_debug & VIDC_FTRACE) { \
|
||||
char trace_logbuf[MAX_TRACER_LOG_LENGTH]; \
|
||||
int log_length = snprintf(trace_logbuf, \
|
||||
MAX_TRACER_LOG_LENGTH, \
|
||||
VIDC_DBG_TAG __fmt, \
|
||||
get_debug_level_str(__level), \
|
||||
sid, \
|
||||
get_codec_name(sid), \
|
||||
##__VA_ARGS__); \
|
||||
trace_msm_vidc_printf(trace_logbuf, \
|
||||
log_length); \
|
||||
} \
|
||||
if (msm_vidc_debug & VIDC_PRINTK) { \
|
||||
pr_info(VIDC_DBG_TAG __fmt, \
|
||||
get_debug_level_str(__level), \
|
||||
sid, \
|
||||
get_codec_name(sid), \
|
||||
##__VA_ARGS__); \
|
||||
} \
|
||||
} \
|
||||
} while (0)
|
||||
pr_debug(VIDC_DBG_TAG __fmt, get_debug_level_str(__level), sid, \
|
||||
get_codec_name(sid), ##__VA_ARGS__)
|
||||
|
||||
#define s_vpr_e(sid, __fmt, ...) dprintk(VIDC_ERR, sid, __fmt, ##__VA_ARGS__)
|
||||
#define s_vpr_h(sid, __fmt, ...) dprintk(VIDC_HIGH, sid, __fmt, ##__VA_ARGS__)
|
||||
@ -135,23 +114,7 @@ extern struct log_cookie ctxt[MAX_SUPPORTED_INSTANCES];
|
||||
dprintk(VIDC_BUS, DEFAULT_SID, __fmt, ##__VA_ARGS__)
|
||||
|
||||
#define dprintk_firmware(__level, __fmt, ...) \
|
||||
do { \
|
||||
if (__level & FW_FTRACE) { \
|
||||
char trace_logbuf[MAX_TRACER_LOG_LENGTH]; \
|
||||
int log_length = snprintf(trace_logbuf, \
|
||||
MAX_TRACER_LOG_LENGTH, \
|
||||
FW_DBG_TAG __fmt, \
|
||||
"fw", \
|
||||
##__VA_ARGS__); \
|
||||
trace_msm_vidc_printf(trace_logbuf, \
|
||||
log_length); \
|
||||
} \
|
||||
if (__level & FW_PRINTK) { \
|
||||
pr_info(FW_DBG_TAG __fmt, \
|
||||
"fw", \
|
||||
##__VA_ARGS__); \
|
||||
} \
|
||||
} while (0)
|
||||
pr_debug(FW_DBG_TAG __fmt, "fw", ##__VA_ARGS__)
|
||||
|
||||
#define dprintk_ratelimit(__level, __fmt, arg...) \
|
||||
do { \
|
||||
|
Loading…
Reference in New Issue
Block a user