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:
Yu Chien Peter Lin
2024-08-01 15:26:32 +08:00
committed by Anup Patel
parent f7a625884c
commit a44df8024b

View File

@@ -37,16 +37,14 @@ inline bool smu_support_sleep_mode(struct smu_data *smu, u32 sleep_mode,
switch (sleep_mode) {
case LIGHTSLEEP_MODE:
if (EXTRACT_FIELD(pcs_cfg, PCS_CFG_LIGHT_SLEEP) == 0) {
sbi_printf(
"SMU: hart%d (PCS%d) does not support light sleep mode\n",
sbi_printf("SMU: hart%d (PCS%d) does not support light sleep mode\n",
hartid, hartid + 3);
return false;
}
break;
case DEEPSLEEP_MODE:
if (EXTRACT_FIELD(pcs_cfg, PCS_CFG_DEEP_SLEEP) == 0) {
sbi_printf(
"SMU: hart%d (PCS%d) does not support deep sleep mode\n",
sbi_printf("SMU: hart%d (PCS%d) does not support deep sleep mode\n",
hartid, hartid + 3);
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;
if (reset_vector != (u64)wakeup_addr) {
sbi_printf(
"hart%d (PCS%d): Failed to program the reset vector.\n",
sbi_printf("hart%d (PCS%d): Failed to program the reset vector.\n",
hartid, hartid + 3);
return SBI_EFAIL;
} else