forked from Mirrors/opensbi
util: atcsmu.c: modify sbi_printf() formatting
Beautify multi-line printing. Signed-off-by: Leo Yu-Chi Liang <ycliang@andestech.com> Reviewed-by: Yu Chien Peter Lin <peterlin@andestech.com> Reviewed-by: Anup Patel <anup@brainfault.org>
This commit is contained in:

committed by
Anup Patel

parent
f7a625884c
commit
a44df8024b
@@ -37,16 +37,14 @@ inline bool smu_support_sleep_mode(struct smu_data *smu, u32 sleep_mode,
|
|||||||
switch (sleep_mode) {
|
switch (sleep_mode) {
|
||||||
case LIGHTSLEEP_MODE:
|
case LIGHTSLEEP_MODE:
|
||||||
if (EXTRACT_FIELD(pcs_cfg, PCS_CFG_LIGHT_SLEEP) == 0) {
|
if (EXTRACT_FIELD(pcs_cfg, PCS_CFG_LIGHT_SLEEP) == 0) {
|
||||||
sbi_printf(
|
sbi_printf("SMU: hart%d (PCS%d) does not support light sleep mode\n",
|
||||||
"SMU: hart%d (PCS%d) does not support light sleep mode\n",
|
|
||||||
hartid, hartid + 3);
|
hartid, hartid + 3);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case DEEPSLEEP_MODE:
|
case DEEPSLEEP_MODE:
|
||||||
if (EXTRACT_FIELD(pcs_cfg, PCS_CFG_DEEP_SLEEP) == 0) {
|
if (EXTRACT_FIELD(pcs_cfg, PCS_CFG_DEEP_SLEEP) == 0) {
|
||||||
sbi_printf(
|
sbi_printf("SMU: hart%d (PCS%d) does not support deep sleep mode\n",
|
||||||
"SMU: hart%d (PCS%d) does not support deep sleep mode\n",
|
|
||||||
hartid, hartid + 3);
|
hartid, hartid + 3);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -83,8 +81,7 @@ inline int smu_set_reset_vector(struct smu_data *smu, ulong wakeup_addr,
|
|||||||
reset_vector = ((u64)vec_hi << 32) | vec_lo;
|
reset_vector = ((u64)vec_hi << 32) | vec_lo;
|
||||||
|
|
||||||
if (reset_vector != (u64)wakeup_addr) {
|
if (reset_vector != (u64)wakeup_addr) {
|
||||||
sbi_printf(
|
sbi_printf("hart%d (PCS%d): Failed to program the reset vector.\n",
|
||||||
"hart%d (PCS%d): Failed to program the reset vector.\n",
|
|
||||||
hartid, hartid + 3);
|
hartid, hartid + 3);
|
||||||
return SBI_EFAIL;
|
return SBI_EFAIL;
|
||||||
} else
|
} else
|
||||||
|
Reference in New Issue
Block a user