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>
Signed-off-by: Chris Lew <quic_clew@quicinc.com>
This commit is contained in:
Chris Lew 2022-10-27 11:08:55 -07:00
parent 0079417ad7
commit c4a21244f3

View File

@ -26,7 +26,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;
}