From: John Wolfe Date: Fri, 21 Oct 2022 18:39:49 +0000 (-0700) Subject: Fix printf format type found by Coverity scan. X-Git-Tag: stable-12.2.0~57 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3c7bcfc3a3ca1e8a4d80b2eded28cb36535717f0;p=thirdparty%2Fopen-vm-tools.git Fix printf format type found by Coverity scan. printf format should be using %zu to print a size_t value. --- diff --git a/open-vm-tools/libDeployPkg/linuxDeployment.c b/open-vm-tools/libDeployPkg/linuxDeployment.c index 2a9799bc8..ac28c0d5d 100644 --- a/open-vm-tools/libDeployPkg/linuxDeployment.c +++ b/open-vm-tools/libDeployPkg/linuxDeployment.c @@ -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; }