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>
This commit is contained in:
@@ -1,5 +1,15 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/* Copyright (c) 2015-2018, The Linux Foundation. All rights reserved.
|
||||
/* Copyright (c) 2015-2019, The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 and
|
||||
* only version 2 as published by the Free Software Foundation.
|
||||
*
|
||||
* 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>
|
||||
@@ -271,7 +281,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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user