Re: [RFC PATCH-for-5.1 2/2] tpm: List the available TPM backends

2020-07-23 Thread Markus Armbruster
Philippe Mathieu-Daudé writes: > When an incorrect backend is selected, tpm_display_backend_drivers() > is supposed to list the available backends. However the error is > directly propagated, and we never display the list. The user only > gets "Parameter 'type' expects a TPM backend type" error.

Re: [RFC PATCH-for-5.1 2/2] tpm: List the available TPM backends

2020-07-23 Thread Philippe Mathieu-Daudé
On 7/22/20 11:44 PM, Stefan Berger wrote: > On 7/22/20 7:23 AM, Philippe Mathieu-Daudé wrote: >> When an incorrect backend is selected, tpm_display_backend_drivers() >> is supposed to list the available backends. However the error is >> directly propagated, and we never display the list. The user

Re: [RFC PATCH-for-5.1 2/2] tpm: List the available TPM backends

2020-07-22 Thread Stefan Berger
On 7/22/20 7:23 AM, Philippe Mathieu-Daudé wrote: When an incorrect backend is selected, tpm_display_backend_drivers() is supposed to list the available backends. However the error is directly propagated, and we never display the list. The user only gets "Parameter 'type' expects a TPM backend

[RFC PATCH-for-5.1 2/2] tpm: List the available TPM backends

2020-07-22 Thread Philippe Mathieu-Daudé
When an incorrect backend is selected, tpm_display_backend_drivers() is supposed to list the available backends. However the error is directly propagated, and we never display the list. The user only gets "Parameter 'type' expects a TPM backend type" error. Convert the fprintf(stderr,) calls to