[PATCH] mci: mci-core: make devinfo hex values obvious

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The Manufacturer and OEM/Application ID are printed as hex values, but
don't have a leading zero to designate them as hex to a human reader.
Add the leading 0x to make it obvious that these are hex values.

Signed-off-by: Rouven Czerwinski <r.czerwinski@xxxxxxxxxxxxxx>
---
 drivers/mci/mci-core.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/mci/mci-core.c b/drivers/mci/mci-core.c
index 414bcf6f06..9d6d01f8bc 100644
--- a/drivers/mci/mci-core.c
+++ b/drivers/mci/mci-core.c
@@ -2058,8 +2058,8 @@ static void mci_info(struct device *dev)
 		mci->csd[2], mci->csd[3]);
 	printf("  Max. transfer speed: %u Hz\n", mci->tran_speed);
 	mci_print_caps(mci->card_caps);
-	printf("  Manufacturer ID: %02X\n", extract_mid(mci));
-	printf("  OEM/Application ID: %04X\n", extract_oid(mci));
+	printf("  Manufacturer ID: 0x%02X\n", extract_mid(mci));
+	printf("  OEM/Application ID: 0x%04X\n", extract_oid(mci));
 	printf("  Product name: '%c%c%c%c%c'\n", mci->cid[0] & 0xff,
 		(mci->cid[1] >> 24), (mci->cid[1] >> 16) & 0xff,
 		(mci->cid[1] >> 8) & 0xff, mci->cid[1] & 0xff);
-- 
2.44.0





[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux