summaryrefslogtreecommitdiff
path: root/decoder.c
diff options
context:
space:
mode:
authorDaniel Elstner <daniel.kitta@gmail.com>2015-09-13 22:01:34 +0200
committerDaniel Elstner <daniel.kitta@gmail.com>2015-09-13 22:01:34 +0200
commit4916b17368e8ed06f4bfd045052ab0f891c33954 (patch)
tree0492053ae35ef740839386fad7b68e6bc02d74aa /decoder.c
parentfd4918101e0878be9d399a344511253f5867a646 (diff)
downloadlibsigrokdecode-4916b17368e8ed06f4bfd045052ab0f891c33954.tar.gz
libsigrokdecode-4916b17368e8ed06f4bfd045052ab0f891c33954.zip
Fix srd_log() format warnings
Diffstat (limited to 'decoder.c')
-rw-r--r--decoder.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/decoder.c b/decoder.c
index a5341b3..c494413 100644
--- a/decoder.c
+++ b/decoder.c
@@ -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));