diff options
author | Wei Wang <wvw@google.com> | 2017-09-10 14:27:05 -0700 |
---|---|---|
committer | Michael Bestas <mkbestas@lineageos.org> | 2019-12-23 23:43:37 +0200 |
commit | 17fa02bd7cd83355164bc0574c69f53a4e3b41f0 (patch) | |
tree | e282308c5a2b2448ce9bb0fd8dda253f21153ae9 /drivers | |
parent | 63548bf25b1206d871772721cfdf6cd5d825f9d1 (diff) |
do not call trace_printk on non-debug build
trace_printk will cause trace_printk_init_buffers executed in kernel
start. Remove them from non-debug build.
Test: see nasty message gone in dmesg
Bug: 64215528
Change-Id: I82b8435a3cf36123608aae572c843db8ad86ac8a
Signed-off-by: Wei Wang <wvw@google.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/platform/msm/camera_v2/pproc/cpp/msm_cpp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/media/platform/msm/camera_v2/pproc/cpp/msm_cpp.c b/drivers/media/platform/msm/camera_v2/pproc/cpp/msm_cpp.c index d75af08846cd..48b7488cd233 100644 --- a/drivers/media/platform/msm/camera_v2/pproc/cpp/msm_cpp.c +++ b/drivers/media/platform/msm/camera_v2/pproc/cpp/msm_cpp.c @@ -450,10 +450,12 @@ static unsigned long msm_cpp_queue_buffer_info(struct cpp_device *cpp_dev, buff->map_info.buff_info = *buffer_info; buff->map_info.buf_fd = buffer_info->fd; +#if defined(CONFIG_TRACING) && defined(DEBUG) trace_printk("fd %d index %d native_buff %d ssid %d %d\n", buffer_info->fd, buffer_info->index, buffer_info->native_buff, buff_queue->session_id, buff_queue->stream_id); +#endif if (buff_queue->security_mode == SECURE_MODE) rc = cam_smmu_get_stage2_phy_addr(cpp_dev->iommu_hdl, @@ -485,10 +487,12 @@ static void msm_cpp_dequeue_buffer_info(struct cpp_device *cpp_dev, { int ret = -1; +#if defined(CONFIG_TRACING) && defined(DEBUG) trace_printk("fd %d index %d native_buf %d ssid %d %d\n", buff->map_info.buf_fd, buff->map_info.buff_info.index, buff->map_info.buff_info.native_buff, buff_queue->session_id, buff_queue->stream_id); +#endif if (buff_queue->security_mode == SECURE_MODE) ret = cam_smmu_put_stage2_phy_addr(cpp_dev->iommu_hdl, |