net: qrtr: Change error logging in callback

Print error logs in the callback by using pr_err_ratelimited
so that watchdog bark will not occur due to excessive logging
when the callback is triggered before probe is completed.

Change-Id: I82bb84b7812cef5cb8a37e99c5cf1a54411cbdb8
Signed-off-by: Sarannya S <sarannya@codeaurora.org>
This commit is contained in:
Sarannya S 2021-10-12 15:42:46 +05:30
parent d079ef6772
commit 99ac515580

View file

@ -24,7 +24,7 @@ static int qcom_smd_qrtr_callback(struct rpmsg_device *rpdev,
int rc;
if (!qdev) {
pr_err("%s:Not ready\n", __func__);
pr_err_ratelimited("%s:Not ready\n", __func__);
return -EAGAIN;
}