summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2018-04-20 21:40:12 +0200
committerUwe Hermann <uwe@hermann-uwe.de>2018-04-20 21:43:56 +0200
commit1dac69e9b0bc1d12c45d2a6e49b9890f29b744cb (patch)
tree95dd76dff71da8be68a24e293fb474530561dc71
parentcffb6592f4cff804745b8456e2c9f8abc6571603 (diff)
downloadlibsigrokdecode-1dac69e9b0bc1d12c45d2a6e49b9890f29b744cb.tar.gz
libsigrokdecode-1dac69e9b0bc1d12c45d2a6e49b9890f29b744cb.zip
Show backtrace when decode() aborts due to an error.
The backtrace printing was actually already there, but was emitted using sr_dbg(), which doesn't show up by default for most users. Make it an srd_err() so that most users will see it. This fixes bug #1158.
-rw-r--r--exception.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/exception.c b/exception.c
index b440758..8058fbf 100644
--- a/exception.c
+++ b/exception.c
@@ -144,7 +144,7 @@ SRD_PRIV void srd_exception_catch(const char *format, ...)
/* Log the detailed stack trace. */
if (tracefmt_str) {
- srd_dbg("%s", tracefmt_str);
+ srd_err("%s", tracefmt_str);
g_free(tracefmt_str);
}