]> git.ipfire.org Git - thirdparty/u-boot.git/commit
riscv: simplify backtrace report
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Tue, 14 May 2024 05:51:42 +0000 (07:51 +0200)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Tue, 14 May 2024 10:40:22 +0000 (18:40 +0800)
commit409259e9cff9a9fcae0f2fa0c4ae3ba16682cdda
tree6bdd3d5271b6e1a7019654dd7c78a276b92a3aa4
parentfcaf019c4ed85607bef759ec074df92da222afcf
riscv: simplify backtrace report

* We already have a header 'backtrace', there is no need to repeat the
  word backtrace on every line.
* Add a blank line before the backtrace section of the crash report for
  improved readability.
* If U-Boot is compiled without backtrace, there is no need to write a
  message at all.
* Avoid #ifdef. We prefer functions to always be compiled and let
  the linker remove them if not needed.
* Foresee 3 digits for the backtrace index.

For testing the 'exception' command can be used.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
arch/riscv/lib/interrupts.c