arm: tegra: fix typo in logging functions
Change %02X to %02x since it always displayed 00 otherwise. Signed-off-by: Ion Agorria <ion@agorria.com> Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
This commit is contained in:
committed by
Svyatoslav Ryhel
parent
8768ade2b5
commit
2b323dce57
@@ -32,7 +32,7 @@ int tegra_get_chip(void)
|
||||
* Tegra30, 0x35 for T114, and 0x40 for Tegra124.
|
||||
*/
|
||||
rev = (readl(&gp->hidrev) & HIDREV_CHIPID_MASK) >> HIDREV_CHIPID_SHIFT;
|
||||
debug("%s: CHIPID is 0x%02X\n", __func__, rev);
|
||||
debug("%s: CHIPID is 0x%02x\n", __func__, rev);
|
||||
|
||||
return rev;
|
||||
}
|
||||
@@ -43,7 +43,7 @@ int tegra_get_sku_info(void)
|
||||
struct fuse_regs *fuse = (struct fuse_regs *)NV_PA_FUSE_BASE;
|
||||
|
||||
sku_id = readl(&fuse->sku_info) & 0xff;
|
||||
debug("%s: SKU info byte is 0x%02X\n", __func__, sku_id);
|
||||
debug("%s: SKU info byte is 0x%02x\n", __func__, sku_id);
|
||||
|
||||
return sku_id;
|
||||
}
|
||||
@@ -103,8 +103,8 @@ int tegra_get_chip_sku(void)
|
||||
}
|
||||
|
||||
/* unknown chip/sku id */
|
||||
printf("%s: ERROR: UNKNOWN CHIP/SKU ID COMBO (0x%02X/0x%02X)\n",
|
||||
__func__, chip_id, sku_id);
|
||||
printf("%s: ERROR: UNKNOWN CHIP/SKU ID COMBO (0x%02x/0x%02x)\n",
|
||||
__func__, chip_id, sku_id);
|
||||
return TEGRA_SOC_UNKNOWN;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user