]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Fix a compilation issue in the containerInfo plugin for i386 builds.
authorJohn Wolfe <jwolfe@vmware.com>
Fri, 6 May 2022 21:28:00 +0000 (14:28 -0700)
committerJohn Wolfe <jwolfe@vmware.com>
Fri, 6 May 2022 21:28:00 +0000 (14:28 -0700)
The "gint64" type used for time values in the code is not a "long" on
i386.  The fix using the glib "G_GINT64_FORMAT" macro was provided by
the Debian OVT maintainer.

github PR:
https://github.com/vmware/open-vm-tools/pull/588

open-vm-tools/AUTHORS
open-vm-tools/services/plugins/containerInfo/containerInfo.c

index 402512d093940c58742c4d2c86faa9605bd34065..3adc18b000f778fd2e9ef6af619cc08421aa9acc 100644 (file)
@@ -82,3 +82,6 @@ Marco Trevisan  Update open-vm-tools to build with either Fuse 3 or Fuse 2
 
 Bartosz Brachaczek Make HgfsConvertFromNtTimeNsec aware of 64-bit time_t on i386
                 - https://github.com/vmware/open-vm-tools/pull/387
+
+Bernd Zeimetz   Fix building containerinfo plugin on i386
+                - https://github.com/vmware/open-vm-tools/pull/588
index 9c63c7b76284d4dae650f2df560f19f517b0476c..01fb26baeb5a2608cbd6dec1370e3f10a1e26cfe 100644 (file)
@@ -608,7 +608,7 @@ ContainerInfoGatherTask(ToolsAppCtx *ctx,   // IN
 
    endInfoGatherTime = g_get_monotonic_time();
 
-   g_info("%s: time to complete containerInfo gather = %ld us\n",
+   g_info("%s: time to complete containerInfo gather = %" G_GINT64_FORMAT " us\n",
           __FUNCTION__, endInfoGatherTime - startInfoGatherTime);
 
 exit: