#include "vixOpenSource.h"
#include "vixToolsInt.h"
#include "vmware/tools/plugin.h"
+#include "vmware/tools/log.h"
#ifdef _WIN32
#include "registryWin32.h"
free((char **) envVars);
- g_debug("%s: returning '%s'\n", __FUNCTION__, resultBuffer);
+ guest_debug("%s: returning '%s'\n", __FUNCTION__, resultBuffer);
g_message("%s: opcode %d returning %"FMT64"d\n", __FUNCTION__,
requestMsg->opCode, err);
*pid = (int64) ProcMgr_GetPid(asyncState->procState);
}
- g_debug("%s: started '%s', pid %"FMT64"d\n",
- __FUNCTION__, fullCommandLine, *pid);
+ guest_debug("%s: started '%s', pid %"FMT64"d\n",
+ __FUNCTION__, fullCommandLine, *pid);
#if defined(_WIN32) && SUPPORT_VGAUTH
/*
spList->endTime = state->endTime;
spList->isRunning = FALSE;
- g_debug("%s: started program '%s' has completed, exitCode %d\n",
- __FUNCTION__, spList->fullCommandLine, spList->exitCode);
+ guest_debug("%s: started program '%s' has completed, "
+ "exitCode %d\n", __FUNCTION__,
+ spList->fullCommandLine, spList->exitCode);
/*
* Don't let the procState be free'd on Windows to
}
*result = valueStr;
- g_debug("%s: returning '%s'\n", __FUNCTION__, valueStr);
+ guest_debug("%s: returning '%s'\n", __FUNCTION__, valueStr);
g_message("%s: opcode %d returning %"FMT64"d\n", __FUNCTION__,
requestMsg->opCode, err);
Str_Sprintf(resultBuffer, sizeof(resultBuffer), "%d", resultInt);
*result = resultBuffer;
- g_debug("%s: returning '%s'\n", __FUNCTION__, resultBuffer);
+ guest_debug("%s: returning '%s'\n", __FUNCTION__, resultBuffer);
g_message("%s: opcode %d returning %"FMT64"d\n", __FUNCTION__,
requestMsg->opCode, err);
* system temp folder if the path disappears.
*/
if (VIX_SUCCEEDED(err) && *result != NULL && !File_Exists(*result)) {
- g_warning("%s: '%s' does not exist, retry using system temp.\n",
- __FUNCTION__, *result);
+ host_warning("%s: retry using system temp.\n",
+ __FUNCTION__);
+ guest_warning("%s: '%s' does not exist, retry using system temp.\n",
+ __FUNCTION__, *result);
free(*result);
*result = NULL;
err = VixToolsCreateTempFileInt(requestMsg, TRUE, result);
*result = filePathName;
- g_debug("%s: returning '%s'\n", __FUNCTION__, filePathName);
+ guest_debug("%s: returning '%s'\n", __FUNCTION__, filePathName);
abort:
if (impersonatingVMWareUser) {
*result = value;
- g_debug("%s: returning '%s'\n", __FUNCTION__, value);
+ guest_debug("%s: returning '%s'\n", __FUNCTION__, value);
abort:
if (impersonatingVMWareUser) {
*result = results;
- g_debug("%s: returning '%s'\n", __FUNCTION__, results);
+ guest_debug("%s: returning '%s'\n", __FUNCTION__, results);
abort:
if (impersonatingVMWareUser) {
}
*result = resultBuffer;
- g_debug("%s: returning '%s'\n", __FUNCTION__, resultBuffer);
+ guest_debug("%s: returning '%s'\n", __FUNCTION__, resultBuffer);
g_message("%s: opcode %d returning %"FMT64"d\n", __FUNCTION__,
requestMsg->opCode, err);
}
*result = resultBuffer;
- g_debug("%s: returning '%s'\n", __FUNCTION__, resultBuffer);
+ guest_debug("%s: returning '%s'\n", __FUNCTION__, resultBuffer);
g_message("%s: opcode %d returning %"FMT64"d\n", __FUNCTION__,
requestMsg->opCode, err);
Str_Sprintf(resultBuffer, sizeof(resultBuffer), "%"FMT64"d", pid);
*result = resultBuffer;
- g_debug("%s: returning '%s'\n", __FUNCTION__, resultBuffer);
+ guest_debug("%s: returning '%s'\n", __FUNCTION__, resultBuffer);
g_message("%s: opcode %d returning %"FMT64"d\n", __FUNCTION__,
requestMsg->opCode, err);