diff options
author | Daniel Elstner <daniel.kitta@gmail.com> | 2015-09-13 22:01:34 +0200 |
---|---|---|
committer | Daniel Elstner <daniel.kitta@gmail.com> | 2015-09-13 22:01:34 +0200 |
commit | 4916b17368e8ed06f4bfd045052ab0f891c33954 (patch) | |
tree | 0492053ae35ef740839386fad7b68e6bc02d74aa /exception.c | |
parent | fd4918101e0878be9d399a344511253f5867a646 (diff) | |
download | libsigrokdecode-4916b17368e8ed06f4bfd045052ab0f891c33954.tar.gz libsigrokdecode-4916b17368e8ed06f4bfd045052ab0f891c33954.zip |
Fix srd_log() format warnings
Diffstat (limited to 'exception.c')
-rw-r--r-- | exception.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/exception.c b/exception.c index 8f15ff2..96546f7 100644 --- a/exception.c +++ b/exception.c @@ -62,7 +62,7 @@ SRD_PRIV void srd_exception_catch(const char *format, ...) py_str_as_str(py_str, &str); g_string_append(msg, str); Py_DecRef(py_str); - srd_err(msg->str); + srd_err("%s", msg->str); /* Send a more precise error location to srd_dbg(), if we have it. */ if (etb && etb != Py_None) { @@ -75,7 +75,7 @@ SRD_PRIV void srd_exception_catch(const char *format, ...) py_str_as_str(py_str, &tracestr); Py_DecRef(py_str); g_string_printf(msg, "%s in %s: %s", ename, tracestr, str); - srd_dbg(msg->str); + srd_dbg("%s", msg->str); g_free(tracestr); } g_free(str); |