Skip to contentSkip to conversation

vmw_balloon: Print errors on reset only once

PATCH New Nadav Amit 1 participant 1 message Mar 22, 2022

Subsystems (2)
lore
Share & tools
lore

Nadav Amit

author
#0 lore raw

PATCH 1/1 vmw_balloon: Print errors on reset only once

From: Nadav Amit <[email protected]>

The VMware balloon might be reset multiple times during execution. Print errors only once to avoid filling the log unnecessarily.

---
 drivers/misc/vmw_balloon.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/misc/vmw_balloon.c +2 -2
index f1d8ba6d4857..086ce77d9074 100644
@@ -1452,10 +1452,10 @@ static void vmballoon_reset(struct vmballoon *b)
 
 	error = vmballoon_vmci_init(b);
 	if (error)
-		pr_err("failed to initialize vmci doorbell\n");
+		pr_err_once("failed to initialize vmci doorbell\n");
 
 	if (vmballoon_send_guest_id(b))
-		pr_err("failed to send guest ID to the host\n");
+		pr_err_once("failed to send guest ID to the host\n");
 
 unlock:
 	up_write(&b->conf_sem);
Signature · 1 line
2.25.1