]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Powerops plugin: Enhance logging and response message when a previous
authorKaty Feng <fkaty@vmware.com>
Fri, 23 Dec 2022 00:25:51 +0000 (16:25 -0800)
committerKaty Feng <fkaty@vmware.com>
Fri, 23 Dec 2022 00:25:51 +0000 (16:25 -0800)
powerops script is still running.

open-vm-tools/services/plugins/powerOps/powerOps.c

index db4d4f11e7b5f969e669ac5d39daeec868147875..486d1dbeff074f1d3515be819beef764d55384fd 100644 (file)
@@ -1,5 +1,5 @@
 /*********************************************************
- * Copyright (C) 2008-2016, 2018-2021 VMware, Inc. All rights reserved.
+ * Copyright (C) 2008-2016, 2018-2022 VMware, Inc. All rights reserved.
  *
  * This program is free software; you can redistribute it and/or modify it
  * under the terms of the GNU Lesser General Public License as published
@@ -428,8 +428,10 @@ PowerOpsStateChange(RpcInData *data)
    PowerOpState *state = data->clientData;
 
    if (state->pid != INVALID_PID) {
-      g_debug("State change already in progress.\n");
-      return RPCIN_SETRETVALS(data,  "State change already in progress", FALSE);
+      g_message("State change already in progress: %d, requested = '%s'\n",
+                state->stateChgInProgress,
+                data->name);
+      return RPCIN_SETRETVALS(data, "State change already in progress", FALSE);
    }
 
    g_debug("State change: %s\n", data->name);