aboutsummaryrefslogtreecommitdiff
path: root/lib/utils
diff options
context:
space:
mode:
authorYu Chien Peter Lin <peterlin@andestech.com>2024-08-01 15:26:32 +0800
committerAnup Patel <anup@brainfault.org>2024-08-24 13:10:36 +0530
commita44df8024b36dfd0ef7ccd77261f52d8d3a666e4 (patch)
treeae3a6b78231792f4091458be81c8f8f6fe472d24 /lib/utils
parentf7a625884c7d5bed046bcdb5cfec9a4e6b7e6641 (diff)
downloadopensbi-a44df8024b36dfd0ef7ccd77261f52d8d3a666e4.zip
opensbi-a44df8024b36dfd0ef7ccd77261f52d8d3a666e4.tar.gz
opensbi-a44df8024b36dfd0ef7ccd77261f52d8d3a666e4.tar.bz2
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>
Diffstat (limited to 'lib/utils')
-rw-r--r--lib/utils/sys/atcsmu.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/lib/utils/sys/atcsmu.c b/lib/utils/sys/atcsmu.c
index 676c91f..2cba0eb 100644
--- a/lib/utils/sys/atcsmu.c
+++ b/lib/utils/sys/atcsmu.c
@@ -37,17 +37,15 @@ 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",
- hartid, hartid + 3);
+ 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",
- hartid, hartid + 3);
+ sbi_printf("SMU: hart%d (PCS%d) does not support deep sleep mode\n",
+ hartid, hartid + 3);
return false;
}
break;
@@ -83,9 +81,8 @@ 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",
- hartid, hartid + 3);
+ sbi_printf("hart%d (PCS%d): Failed to program the reset vector.\n",
+ hartid, hartid + 3);
return SBI_EFAIL;
} else
return 0;