]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Fix printf format type found by Coverity scan.
authorJohn Wolfe <jwolfe@vmware.com>
Fri, 21 Oct 2022 18:39:49 +0000 (11:39 -0700)
committerJohn Wolfe <jwolfe@vmware.com>
Fri, 21 Oct 2022 18:39:49 +0000 (11:39 -0700)
printf format should be using %zu to print a size_t value.

open-vm-tools/libDeployPkg/linuxDeployment.c

index 2a9799bc8248f4f67372636e14205f26401cbca5..ac28c0d5df65b64519c623630ad6f1d849c9f5f5 100644 (file)
@@ -405,7 +405,8 @@ SetCustomizationStatusInVmxEx(int customizationState,
          sLog(log_debug, "Got VMX response '%s'.", response);
          if (responseLength > responseBufferSize - 1) {
             sLog(log_warning,
-                 "The VMX response is too long (only %d chars are allowed).",
+                 "The VMX response is too long "
+                 "(only %"FMTSZ"u chars are allowed).",
                  responseBufferSize - 1);
             responseLength = responseBufferSize - 1;
          }