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

Commit 1c00dc6b authored by Patrick Daly's avatar Patrick Daly Committed by Isaac J. Manjarres
Browse files

staging: android: ion: Ratelimit warning message



Ratelimit warning messages to prevent unnecessary log spam.

Change-Id: I61f4a4b65f516650cd9324ccf087639d6ea27da1
Signed-off-by: default avatarPatrick Daly <pdaly@codeaurora.org>
Signed-off-by: default avatarIsaac J. Manjarres <isaacm@codeaurora.org>
parent 2a54c015
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -378,7 +378,7 @@ static int ion_sgl_sync_range(struct device *dev, struct scatterlist *sgl,
			break;

		if (i > 0) {
			pr_warn("Partial cmo only supported with 1 segment\n"
			pr_warn_ratelimited("Partial cmo only supported with 1 segment\n"
				"is dma_set_max_seg_size being set on dev:%s\n",
				dev_name(dev));
			return -EINVAL;