]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoder.c
build: Do not hard-code decoders location on Windows
[libsigrokdecode.git] / decoder.c
index a5341b3651daedf5e1a349f8d5b27c6d5820267b..753a88ae12433e79fdd7792817f3d3023fd76df9 100644 (file)
--- a/decoder.c
+++ b/decoder.c
@@ -18,7 +18,7 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#include "config.h"
+#include <config.h>
 #include "libsigrokdecode-internal.h" /* First, so we avoid a _POSIX_C_SOURCE warning. */
 #include "libsigrokdecode.h"
 #include <glib.h>
@@ -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));