瀏覽代碼

securemsm-kernel: smcinvoke: limit excessive logging

Use pr_err_ratelimited to limit logs that are
printed frequently.

Change-Id: If16646d244e963300be4cabc4250e9139014b3d6
Signed-off-by: Reut Zysman <[email protected]>
Reut Zysman 1 年之前
父節點
當前提交
ce2b7baa79
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      smcinvoke/smcinvoke.c

+ 1 - 1
smcinvoke/smcinvoke.c

@@ -2569,7 +2569,7 @@ static long process_accept_req(struct file *filp, unsigned int cmd,
 		 * new cb requests.
 		 */
 		if (!cb_txn) {
-			pr_err("%s txn %d either invalid or removed from Q\n",
+			pr_err_ratelimited("%s txn %d either invalid or removed from Q\n",
 					__func__, user_args.txn_id);
 			goto start_waiting_for_requests;
 		}