diff options
| author | Armin Kuster <akuster808@gmail.com> | 2017-02-18 11:27:18 -0800 |
|---|---|---|
| committer | Armin Kuster <akuster808@gmail.com> | 2017-02-18 11:43:20 -0800 |
| commit | 21e1f1177c7293b7b2fe622dd499767e1a766b5b (patch) | |
| tree | e2c6cd27cb297e0c32cd8290d20d6be3d2757890 /recipes-tpm/libtpm/files/Convert-another-vdprintf-to-dprintf.patch | |
| parent | c12aa7601e715a44d02927267bc89745f8a82a5b (diff) | |
| download | meta-security-21e1f1177c7293b7b2fe622dd499767e1a766b5b.tar.gz | |
libtpm: Fix arm build issues
backport two upstream patches and remove local verison
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'recipes-tpm/libtpm/files/Convert-another-vdprintf-to-dprintf.patch')
| -rw-r--r-- | recipes-tpm/libtpm/files/Convert-another-vdprintf-to-dprintf.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/recipes-tpm/libtpm/files/Convert-another-vdprintf-to-dprintf.patch b/recipes-tpm/libtpm/files/Convert-another-vdprintf-to-dprintf.patch new file mode 100644 index 0000000..9e1021a --- /dev/null +++ b/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); | ||
