lib: sbi: Refine addr format in sbi_printf
authorDong Du <Dd_nirvana@sjtu.edu.cn>
Mon, 25 Oct 2021 08:06:15 +0000 (16:06 +0800)
committerAnup Patel <anup@brainfault.org>
Tue, 2 Nov 2021 05:12:01 +0000 (10:42 +0530)
commit723aa88ff4cc44230cf871bda319905113003279
tree495f11823e27d6a9c693e2a1d32c0f29817da625
parent309e8bdf85ec7f7dd2f0907c4c9206a9ee639784
lib: sbi: Refine addr format in sbi_printf

Although we have PRILX to help us print unsigned long without
considering the 32bit/64bit differences, there are still some
places using 08lx and 016lx manually --- leading to redundant code.

This commit fixes the issue by using PRILX all the time.

Signed-off-by: Dong Du <Dd_nirvana@sjtu.edu.cn>
Reviewed-by: Anup Patel <anup.patel@wdc.com>
lib/sbi/sbi_domain.c
lib/sbi/sbi_hart.c