From 5264660de5d94953fbce878cbb19712e44c31815 Mon Sep 17 00:00:00 2001 From: Gagan Malvi Date: Thu, 26 Aug 2021 15:09:06 +0200 Subject: [PATCH] msm: vidc: Disable debugfs not created logspam. Signed-off-by: Gagan Malvi --- drivers/media/platform/msm/vidc_3x/msm_v4l2_vidc.c | 4 ++-- drivers/media/platform/msm/vidc_3x/msm_vidc_debug.c | 4 ++-- techpack/video/msm/vidc/msm_v4l2_vidc.c | 2 +- techpack/video/msm/vidc/msm_vidc_debug.c | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/media/platform/msm/vidc_3x/msm_v4l2_vidc.c b/drivers/media/platform/msm/vidc_3x/msm_v4l2_vidc.c index 00a35099babd..9131337a8d47 100644 --- a/drivers/media/platform/msm/vidc_3x/msm_v4l2_vidc.c +++ b/drivers/media/platform/msm/vidc_3x/msm_v4l2_vidc.c @@ -808,8 +808,8 @@ static int __init msm_vidc_init(void) mutex_init(&vidc_driver->lock); vidc_driver->debugfs_root = msm_vidc_debugfs_init_drv(); if (!vidc_driver->debugfs_root) - dprintk(VIDC_ERR, - "Failed to create debugfs for msm_vidc\n"); +// dprintk(VIDC_ERR, +// "Failed to create debugfs for msm_vidc\n"); rc = platform_driver_register(&msm_vidc_driver); if (rc) { diff --git a/drivers/media/platform/msm/vidc_3x/msm_vidc_debug.c b/drivers/media/platform/msm/vidc_3x/msm_vidc_debug.c index 807ed21d788e..74bbcb5c9d89 100644 --- a/drivers/media/platform/msm/vidc_3x/msm_vidc_debug.c +++ b/drivers/media/platform/msm/vidc_3x/msm_vidc_debug.c @@ -228,7 +228,7 @@ struct dentry *msm_vidc_debugfs_init_core(struct msm_vidc_core *core, snprintf(debugfs_name, MAX_DEBUGFS_NAME, "core%d", core->id); dir = debugfs_create_dir(debugfs_name, parent); if (!dir) { - dprintk(VIDC_ERR, "Failed to create debugfs for msm_vidc\n"); +// dprintk(VIDC_ERR, "Failed to create debugfs for msm_vidc\n"); goto failed_create_dir; } @@ -447,7 +447,7 @@ struct dentry *msm_vidc_debugfs_init_inst(struct msm_vidc_inst *inst, dir = debugfs_create_dir(debugfs_name, parent); if (!dir) { - dprintk(VIDC_ERR, "Failed to create debugfs for msm_vidc\n"); +// dprintk(VIDC_ERR, "Failed to create debugfs for msm_vidc\n"); goto failed_create_dir; } diff --git a/techpack/video/msm/vidc/msm_v4l2_vidc.c b/techpack/video/msm/vidc/msm_v4l2_vidc.c index 0fd761e87343..ae2950be0a19 100644 --- a/techpack/video/msm/vidc/msm_v4l2_vidc.c +++ b/techpack/video/msm/vidc/msm_v4l2_vidc.c @@ -772,7 +772,7 @@ static int __init msm_vidc_init(void) mutex_init(&vidc_driver->lock); vidc_driver->debugfs_root = msm_vidc_debugfs_init_drv(); if (!vidc_driver->debugfs_root) - d_vpr_e("Failed to create debugfs for msm_vidc\n"); +// d_vpr_e("Failed to create debugfs for msm_vidc\n"); rc = platform_driver_register(&msm_vidc_driver); if (rc) { diff --git a/techpack/video/msm/vidc/msm_vidc_debug.c b/techpack/video/msm/vidc/msm_vidc_debug.c index e803269aa6bd..3f1617aa3010 100644 --- a/techpack/video/msm/vidc/msm_vidc_debug.c +++ b/techpack/video/msm/vidc/msm_vidc_debug.c @@ -273,7 +273,7 @@ struct dentry *msm_vidc_debugfs_init_core(struct msm_vidc_core *core, dir = debugfs_create_dir(debugfs_name, parent); if (IS_ERR_OR_NULL(dir)) { dir = NULL; - d_vpr_e("Failed to create debugfs for msm_vidc\n"); +// d_vpr_e("Failed to create debugfs for msm_vidc\n"); goto failed_create_dir; } if (!debugfs_create_file("info", 0444, dir, core, &core_info_fops)) { @@ -494,7 +494,7 @@ struct dentry *msm_vidc_debugfs_init_inst(struct msm_vidc_inst *inst, dir = debugfs_create_dir(debugfs_name, parent); if (IS_ERR_OR_NULL(dir)) { dir = NULL; - s_vpr_e(inst->sid, "Failed to create debugfs for msm_vidc\n"); +// s_vpr_e(inst->sid, "Failed to create debugfs for msm_vidc\n"); goto failed_create_dir; }