blob: 9e1021a23aca4efe8063dd706fe9f7621253515a [file] [log] [blame]
Richard Marian Thomaiyar14fddef2018-07-13 23:55:56 +05301From 09e7dd42e5201d079bad70e9f7cc6033ce1c7cad Mon Sep 17 00:00:00 2001
2From: Stefan Berger <stefanb@linux.vnet.ibm.com>
3Date: Fri, 3 Feb 2017 10:58:22 -0500
4Subject: [PATCH] Convert another vdprintf to dprintf
5
6Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
7Upstream-Status: Backport
8Signed-off-by: Armin Kuster <akuster@mvista.com>
9
10---
11 src/tpm_library.c | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-)
13
14Index: git/src/tpm_library.c
15===================================================================
16--- git.orig/src/tpm_library.c
17+++ git/src/tpm_library.c
18@@ -427,7 +427,7 @@ void TPMLIB_LogPrintfA(unsigned int inde
19 indent = sizeof(spaces) - 1;
20 memset(spaces, ' ', indent);
21 spaces[indent] = 0;
22- vdprintf(debug_fd, spaces, NULL);
23+ dprintf(debug_fd, "%s", spaces);
24 }
25
26 va_start(args, format);