Richard Marian Thomaiyar | 14fddef | 2018-07-13 23:55:56 +0530 | [diff] [blame] | 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); |