From: John Wolfe Date: Thu, 10 Nov 2022 20:01:14 +0000 (-0800) Subject: Fix printf format type found by Coverity scan. X-Git-Tag: stable-12.1.5~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a205236af862e732c774a5c2b77b700ccfc73f25;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 e80599020..19863cad0 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; }