lib: sbi: Add debug print when sbi_pmu_init fails
authorTan En De <ende.tan@starfivetech.com>
Fri, 14 Apr 2023 05:13:11 +0000 (13:13 +0800)
committerAnup Patel <anup@brainfault.org>
Thu, 20 Apr 2023 08:49:44 +0000 (14:19 +0530)
commit791953030836d39687688a8e7f1a3e708892cfa1
tree115b7e73f279e9504516dfc2f676268dd518b780
parentf5dfd991396891d87d7780be45f887bc9ed13099
lib: sbi: Add debug print when sbi_pmu_init fails

Since sbi_pmu_init is called after sbi_console_init,
the sbi_printf can be called when sbi_pmu_init fails.

Signed-off-by: Tan En De <ende.tan@starfivetech.com>
Reviewed-by: Atish Patra <atishp@rivosinc.com>
lib/sbi/sbi_init.c