]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Fix printf format type found by Coverity scan.
authorJohn Wolfe <jwolfe@vmware.com>
Thu, 10 Nov 2022 20:01:14 +0000 (12:01 -0800)
committerJohn Wolfe <jwolfe@vmware.com>
Thu, 10 Nov 2022 20:01:14 +0000 (12:01 -0800)
printf format should be using %zu to print a size_t value.

open-vm-tools/libDeployPkg/linuxDeployment.c

index e805990202c1f761d40f6a6fac1292a283a2fd25..19863cad0c4794688b43b12dedb332317c86b420 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;
          }