summaryrefslogtreecommitdiffstats
path: root/arch/arm/lib64/stacktrace.c
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2023-09-11 14:56:16 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2023-09-12 11:36:24 +0200
commit58b50ee3925e0b3161749311c17b95e7e441c1ff (patch)
tree57100962646dec5aff4b959b80f4b6a25f174b1c /arch/arm/lib64/stacktrace.c
parentc1b317d5a1958fd9b4b882e9b397e65e3302791c (diff)
downloadbarebox-58b50ee3925e0b3161749311c17b95e7e441c1ff.tar.gz
barebox-58b50ee3925e0b3161749311c17b95e7e441c1ff.tar.xz
ARM: unwind: don't allocate while printing stack trace
Calling dump_stack() in response to failing assertions can be useful to pinpoint where things started going awry. This is also done in TLSF code, but dump_stack actually calls malloc, because it uses the logging functions instead of printing directly to console. To avoid circular dependencies and dump_stack() falsifying debugging results, let's use eprintf instead of pr_*: That way, the output still makes it to stderr, but it's no longer logged. This also removes the orange WARNING: prefix, but that can be added back if needed. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20230911125619.2782229-2-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/lib64/stacktrace.c')
0 files changed, 0 insertions, 0 deletions