diff options
Diffstat (limited to 'meta-tpm/recipes-tpm/libtpm/files/Convert-another-vdprintf-to-dprintf.patch')
-rw-r--r-- | meta-tpm/recipes-tpm/libtpm/files/Convert-another-vdprintf-to-dprintf.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/meta-tpm/recipes-tpm/libtpm/files/Convert-another-vdprintf-to-dprintf.patch b/meta-tpm/recipes-tpm/libtpm/files/Convert-another-vdprintf-to-dprintf.patch new file mode 100644 index 0000000..9e1021a --- /dev/null +++ b/meta-tpm/recipes-tpm/libtpm/files/Convert-another-vdprintf-to-dprintf.patch | |||
@@ -0,0 +1,26 @@ | |||
1 | From 09e7dd42e5201d079bad70e9f7cc6033ce1c7cad Mon Sep 17 00:00:00 2001 | ||
2 | From: Stefan Berger <stefanb@linux.vnet.ibm.com> | ||
3 | Date: Fri, 3 Feb 2017 10:58:22 -0500 | ||
4 | Subject: [PATCH] Convert another vdprintf to dprintf | ||
5 | |||
6 | Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com> | ||
7 | Upstream-Status: Backport | ||
8 | Signed-off-by: Armin Kuster <akuster@mvista.com> | ||
9 | |||
10 | --- | ||
11 | src/tpm_library.c | 2 +- | ||
12 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
13 | |||
14 | Index: 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); | ||