]> git.proxmox.com Git - libtpms.git/commitdiff
Convert another vdprintf to dprintf
authorStefan Berger <stefanb@linux.vnet.ibm.com>
Fri, 3 Feb 2017 15:58:22 +0000 (10:58 -0500)
committerStefan Berger <stefanb@linux.vnet.ibm.com>
Wed, 15 Mar 2017 12:10:11 +0000 (08:10 -0400)
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
src/tpm_library.c

index e7a1f6482833577a9a83454846c196ef3650e319..1d529f26ab7888d6c1cc750fd41bb8217d72d97a 100644 (file)
@@ -428,7 +428,7 @@ void TPMLIB_LogPrintfA(unsigned int indent, const char *format, ...)
             indent = sizeof(spaces) - 1;
         memset(spaces, ' ', indent);
         spaces[indent] = 0;
-        vdprintf(debug_fd, spaces, NULL);
+        dprintf(debug_fd, "%s", spaces);
     }
 
     va_start(args, format);