]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
[DeployPkg] Replace Log() references with g_log()
authorOliver Kurth <okurth@vmware.com>
Mon, 30 Apr 2018 21:04:13 +0000 (14:04 -0700)
committerOliver Kurth <okurth@vmware.com>
Mon, 30 Apr 2018 21:04:13 +0000 (14:04 -0700)
* Modified the code to replace a couple of Log() references with g_debug()
so that they are properly logged with 'deplogPkg' domain instead of the
generic 'vmsvc' domain in the tools log files.

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

index 3b2727a6ab9ad40f39409d81ab4d3ea11515e0ad..7c6a8affe2e8360d6779c35b1d96779554fe9bd0 100644 (file)
@@ -31,7 +31,6 @@
 #include "deployPkg/linuxDeployment.h"
 #endif
 
-#include "vm_assert.h"
 #include "file.h"
 #include "str.h"
 #include "util.h"
@@ -199,13 +198,13 @@ DeployPkgExecDeploy(ToolsAppCtx *ctx,   // IN: app context
    }
 
    /* Attempt to delete the package file and tempdir. */
-   Log("Deleting file %s\n", pkgNameStr);
+   g_debug("Deleting file %s\n", pkgNameStr);
    if (File_Unlink(pkgNameStr) == 0) {
       char *vol, *dir, *path;
       File_SplitName(pkgNameStr, &vol, &dir, NULL);
       path = Str_Asprintf(NULL, "%s%s", vol, dir);
       if (path != NULL) {
-         Log("Deleting directory %s\n", path);
+         g_debug("Deleting directory %s\n", path);
          File_DeleteEmptyDirectory(path);
          free(path);
       }