[PATCH 4/6] tpm_tis: print complete vendor information

From: Andy Isaacson
Date: Tue Jun 30 2009 - 21:23:02 EST


The TPM_VID field contains a vendor-id as well as a device-id,
but the code only prints the device-id. Fix it.

Signed-off-by: Andy Isaacson <adi@xxxxxxxxxx>
---
drivers/char/tpm/tpm_tis.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/char/tpm/tpm_tis.c b/drivers/char/tpm/tpm_tis.c
index e0bda02..50c2a8a 100644
--- a/drivers/char/tpm/tpm_tis.c
+++ b/drivers/char/tpm/tpm_tis.c
@@ -464,7 +464,7 @@ static int tpm_tis_init(struct device *dev, resource_size_t start,
vendor = ioread32(chip->vendor.iobase + TPM_DID_VID(0));

dev_info(dev,
- "1.2 TPM (device-id 0x%X, rev-id %d)\n",
+ "1.2 TPM (%04X:%04X rev %d)\n", vendor & 0xffff,
vendor >> 16, ioread8(chip->vendor.iobase + TPM_RID(0)));

/* Figure out the capabilities */
--
1.6.3.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/