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

Commit 8d78493b authored by Ravi Aravamudhan's avatar Ravi Aravamudhan
Browse files

diag: Ratelimit certain dmesg



This patch ratelimits printing of smd write failure dmesg for diag
commands that cannot be sent to the peripherals.

Change-Id: I68937ca6ccf9f1a5a49bbfac3779d3d530dbc78a
CRs-Fixed: 707938
Signed-off-by: default avatarRavi Aravamudhan <aravamud@codeaurora.org>
parent 741aa5d9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -875,7 +875,7 @@ int diag_send_data(struct diag_master_table entry, unsigned char *buf,
						&driver->smd_data[index];
				err = diag_smd_write(smd_info, buf, len);
				if (err) {
					pr_err("diag: In %s, unable to write to smd, peripheral: %d, type: %d, err: %d\n",
					pr_err_ratelimited("diag: In %s, unable to write to smd, peripheral: %d, type: %d, err: %d\n",
						__func__, smd_info->peripheral,
						smd_info->type, err);
				}