On Wed, 2020-07-15 at 15:28 +0200, Petr Vorel wrote: > instead of checking in build time as it's runtime dependency. > Also log when tsspcrread not found to make debugging easier. > > We search for tsspcrread unless there is tss2-esys with Esys_PCR_Read(), > thus pcr_none.c was dropped as unneeded. > > file_exist(), tst_get_path() and MIN() taken from LTP project. > > Signed-off-by: Petr Vorel <pvorel@xxxxxxx> > --- > Hi Mimi, > > changes v1->v2: > * Log used binary/library. > * Drop using **errmsg in tpm2_pcr_supported() use log_info() and > log_debug() instead. > * Formatting changes in includes > > Feel free to amend this patch to suit your needs. log_info() is not displaying the method of reading the PCRs. To resolve this add the necessary USE_FPRINTF definitions. Mimi