aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Kelley <[email protected]>2021-04-20 08:44:19 -0700
committerWei Liu <[email protected]>2021-04-20 19:48:15 +0000
commitaa5b7d11c7cb87c266d705b237368985e7171958 (patch)
treea3bce8cb021075c157a6b0909f43a92233440312
parent77db0ec8b7764cb9b09b78066ebfd47b2c0c1909 (diff)
video: hyperv_fb: Add ratelimit on error message
Due to a full ring buffer, the driver may be unable to send updates to the Hyper-V host. But outputing the error message can make the problem worse because console output is also typically written to the frame buffer. As a result, in some circumstances the error message is output continuously. Break the cycle by rate limiting the error message. Also output the error code for additional diagnosability. Signed-off-by: Michael Kelley <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Wei Liu <[email protected]>
-rw-r--r--drivers/video/fbdev/hyperv_fb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/fbdev/hyperv_fb.c b/drivers/video/fbdev/hyperv_fb.c
index c8b0ae676809..68adbf8d517a 100644
--- a/drivers/video/fbdev/hyperv_fb.c
+++ b/drivers/video/fbdev/hyperv_fb.c
@@ -308,7 +308,7 @@ static inline int synthvid_send(struct hv_device *hdev,
VM_PKT_DATA_INBAND, 0);
if (ret)
- pr_err("Unable to send packet via vmbus\n");
+ pr_err_ratelimited("Unable to send packet via vmbus; error %d\n", ret);
return ret;
}