Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aadfb03a authored by Chris Lew's avatar Chris Lew
Browse files

soc: qcom: qmi_interface: Change qmi send fail to pr_info



QMI send failures can happen rapidly depending on client's usage.
Change the pr_err for send failues to pr_info since these prints can
happen rapidly and flood the kernel log buffer.

Also print the return code on sock_sendmsg for more failure info.

Change-Id: Ia75273fd330f1dcfd4e5023cf439ef18f1a0e0ff
Signed-off-by: default avatarChris Lew <clew@codeaurora.org>
parent 409af4b4
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -789,7 +789,7 @@ static ssize_t qmi_send_message(struct qmi_handle *qmi,
	if (qmi->sock) {
	if (qmi->sock) {
		ret = kernel_sendmsg(qmi->sock, &msghdr, &iv, 1, len);
		ret = kernel_sendmsg(qmi->sock, &msghdr, &iv, 1, len);
		if (ret < 0)
		if (ret < 0)
			pr_err("failed to send QMI message\n");
			pr_info("failed to send QMI message %d\n", ret);
	} else {
	} else {
		ret = -EPIPE;
		ret = -EPIPE;
	}
	}