X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=blobdiff_plain;f=exception.c;h=aa7ab616d58df4a949e8cf0c814ca06118c9a73a;hp=07ffab35969770851f941cc0d1bd0a8effac81f1;hb=7a1712c4fd07f64222079acd5ec3fa3348a5cb15;hpb=3a8b2e789262545fe409f95f69319b80e66aac13 diff --git a/exception.c b/exception.c index 07ffab3..aa7ab61 100644 --- a/exception.c +++ b/exception.c @@ -41,8 +41,8 @@ void catch_exception(const char *format, ...) PyErr_NormalizeException(&etype, &evalue, &etb); if (!(py_str = PyObject_Str(evalue))) { - /* Shouldn't happen */ - srd_dbg("srd: failed to convert exception value to string"); + /* Shouldn't happen. */ + srd_dbg("Failed to convert exception value to string."); return; } @@ -74,8 +74,7 @@ void catch_exception(const char *format, ...) py_tb->tb_frame->f_code->co_name); py_str_as_str(py_str, &tracestr); Py_DecRef(py_str); - g_string_printf(msg, "srd: %s in %s: %s", ename, - tracestr, str); + g_string_printf(msg, "%s in %s: %s", ename, tracestr, str); srd_dbg(msg->str); g_free(tracestr); }