codecs: reduce error log rate
Huge volume of log prints out at error. Reduce the redundant log. Change-Id: I761d5953614d039b7a725926c38adee1beeeec41 Signed-off-by: Xiaojun Sang <xsang@codeaurora.org>
这个提交包含在:
@@ -3,7 +3,17 @@
|
||||
*
|
||||
* Copyright (C) 2008 Google, Inc.
|
||||
* Copyright (C) 2008 HTC Corporation
|
||||
* Copyright (c) 2011-2017, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2011-2017, 2019 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* This software is licensed under the terms of the GNU General Public
|
||||
* License version 2, as published by the Free Software Foundation, and
|
||||
* may be copied, distributed, and modified under those terms.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
*/
|
||||
|
||||
#include <linux/types.h>
|
||||
@@ -137,7 +147,7 @@ static int audio_open(struct inode *inode, struct file *file)
|
||||
}
|
||||
rc = audio_aio_open(audio, file);
|
||||
if (rc < 0) {
|
||||
pr_err("%s: audio_aio_open rc=%d\n",
|
||||
pr_err_ratelimited("%s: audio_aio_open rc=%d\n",
|
||||
__func__, rc);
|
||||
goto fail;
|
||||
}
|
||||
@@ -178,7 +188,7 @@ static int audio_open(struct inode *inode, struct file *file)
|
||||
if (IS_ERR(audio->dentry))
|
||||
pr_debug("debugfs_create_file failed\n");
|
||||
#endif
|
||||
pr_info("%s:amrnb decoder open success, session_id = %d\n", __func__,
|
||||
pr_info_ratelimited("%s:amrnb decoder open success, session_id = %d\n", __func__,
|
||||
audio->ac->session);
|
||||
return rc;
|
||||
fail:
|
||||
|
在新工单中引用
屏蔽一个用户