X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=decoder.c;h=753a88ae12433e79fdd7792817f3d3023fd76df9;hb=c6bfbc0043089e006c684bcce609da50aadded81;hp=a5341b3651daedf5e1a349f8d5b27c6d5820267b;hpb=077fa8acbcb8b585af6f5323f16221940a27a72e;p=libsigrokdecode.git
diff --git a/decoder.c b/decoder.c
index a5341b3..753a88a 100644
--- a/decoder.c
+++ b/decoder.c
@@ -18,7 +18,7 @@
* along with this program. If not, see .
*/
-#include "config.h"
+#include
#include "libsigrokdecode-internal.h" /* First, so we avoid a _POSIX_C_SOURCE warning. */
#include "libsigrokdecode.h"
#include
@@ -187,8 +187,8 @@ static int get_options(struct srd_decoder *d)
return SRD_ERR_PYTHON;
}
if (!(py_val = PyDict_GetItemString(py_opt, "id"))) {
- srd_err("Protocol decoder %s option %d has no "
- "id.", d->name);
+ srd_err("Protocol decoder %s option %zd has no "
+ "id.", d->name, opt);
return SRD_ERR_PYTHON;
}
o = g_malloc0(sizeof(struct srd_decoder_option));