From: Katy Feng Date: Fri, 23 Dec 2022 00:25:51 +0000 (-0800) Subject: Powerops plugin: Enhance logging and response message when a previous X-Git-Tag: stable-12.2.0~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=63a35ed428b16baedc4cea0d666ac1b8d762de2e;p=thirdparty%2Fopen-vm-tools.git Powerops plugin: Enhance logging and response message when a previous powerops script is still running. --- diff --git a/open-vm-tools/services/plugins/powerOps/powerOps.c b/open-vm-tools/services/plugins/powerOps/powerOps.c index db4d4f11e..486d1dbef 100644 --- a/open-vm-tools/services/plugins/powerOps/powerOps.c +++ b/open-vm-tools/services/plugins/powerOps/powerOps.c @@ -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);