staging: android: ion: Ratelimit warning message

Ratelimit warning messages to prevent unnecessary log spam.

Change-Id: I61f4a4b65f516650cd9324ccf087639d6ea27da1
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
This commit is contained in:
Patrick Daly 2019-07-19 17:32:01 -07:00 • committed by Isaac J. Manjarres
commit 1c00dc6bef

View file

@ -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;