diff options
author | Bastian Stender <bst@pengutronix.de> | 2017-11-28 03:24:06 -0500 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2017-11-29 04:46:47 -0500 |
commit | 80a780a167d9267c72867b806142bd6ec69ba123 (patch) | |
tree | 1e3f949e0bd44f33ad3bf0550359252b215cd854 | |
parent | 250dcd11466e06df64b92520e2c56bdae453581b (diff) |
mmc: core: prepend 0x to pre_eol_info entry in sysfs
The sysfs entry "pre_eol_info" was missing the 0x prefix to identify it
as hex formatted.
Fixes: 46bc5c408e4e ("mmc: core: Export device lifetime information through sysfs")
Signed-off-by: Bastian Stender <bst@pengutronix.de>
Cc: <stable@vger.kernel.org> # v4.11+
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
-rw-r--r-- | drivers/mmc/core/mmc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c index a552f61060d2..b8259fcb4bda 100644 --- a/drivers/mmc/core/mmc.c +++ b/drivers/mmc/core/mmc.c | |||
@@ -781,7 +781,7 @@ MMC_DEV_ATTR(name, "%s\n", card->cid.prod_name); | |||
781 | MMC_DEV_ATTR(oemid, "0x%04x\n", card->cid.oemid); | 781 | MMC_DEV_ATTR(oemid, "0x%04x\n", card->cid.oemid); |
782 | MMC_DEV_ATTR(prv, "0x%x\n", card->cid.prv); | 782 | MMC_DEV_ATTR(prv, "0x%x\n", card->cid.prv); |
783 | MMC_DEV_ATTR(rev, "0x%x\n", card->ext_csd.rev); | 783 | MMC_DEV_ATTR(rev, "0x%x\n", card->ext_csd.rev); |
784 | MMC_DEV_ATTR(pre_eol_info, "%02x\n", card->ext_csd.pre_eol_info); | 784 | MMC_DEV_ATTR(pre_eol_info, "0x%02x\n", card->ext_csd.pre_eol_info); |
785 | MMC_DEV_ATTR(life_time, "0x%02x 0x%02x\n", | 785 | MMC_DEV_ATTR(life_time, "0x%02x 0x%02x\n", |
786 | card->ext_csd.device_life_time_est_typ_a, | 786 | card->ext_csd.device_life_time_est_typ_a, |
787 | card->ext_csd.device_life_time_est_typ_b); | 787 | card->ext_csd.device_life_time_est_typ_b); |