From: Uwe Hermann Date: Fri, 20 Apr 2018 19:40:12 +0000 (+0200) Subject: Show backtrace when decode() aborts due to an error. X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=commitdiff_plain;h=1dac69e9b0bc1d12c45d2a6e49b9890f29b744cb;hp=cffb6592f4cff804745b8456e2c9f8abc6571603 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. --- 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); }