aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/vmw_balloon.c
diff options
context:
space:
mode:
authorNadav Amit <namit@vmware.com>2022-03-22 17:00:52 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-04-24 17:24:06 +0200
commitfd7e92d5b8b4a01f1d2c3197f2489f2a9b2d186e (patch)
tree3ecd959c898afa66812852a33d6830f0aa6482b8 /drivers/misc/vmw_balloon.c
parent874dfbcf219ccc42a2cbd187d087c7db82c3024b (diff)
downloadlinux-fd7e92d5b8b4a01f1d2c3197f2489f2a9b2d186e.tar.gz
vmw_balloon: Print errors on reset only once
The VMware balloon might be reset multiple times during execution. Print errors only once to avoid filling the log unnecessarily. Signed-off-by: Nadav Amit <namit@vmware.com> Link: https://lore.kernel.org/r/20220322170052.6351-1-namit@vmware.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/vmw_balloon.c')
-rw-r--r--drivers/misc/vmw_balloon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/misc/vmw_balloon.c b/drivers/misc/vmw_balloon.c
index f1d8ba6d485741..086ce77d9074e5 100644
--- a/drivers/misc/vmw_balloon.c
+++ b/drivers/misc/vmw_balloon.c
@@ -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);