On Fri, Oct 25, 2019 at 12:31:03PM -0700, Jerry Snitselaar wrote: > + return sprintf(buf, "%s\n", chip->flags & TPM_CHIP_FLAG_TPM2 > + ? "2.0" : "1.2"); This is not right. Should be either "1" or "2". /Jarkko
On Fri, Oct 25, 2019 at 12:31:03PM -0700, Jerry Snitselaar wrote: > + return sprintf(buf, "%s\n", chip->flags & TPM_CHIP_FLAG_TPM2 > + ? "2.0" : "1.2"); This is not right. Should be either "1" or "2". /Jarkko