summaryrefslogtreecommitdiff
path: root/type_decoder.c
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2012-01-27 18:38:16 +0100
committerUwe Hermann <uwe@hermann-uwe.de>2012-01-27 18:38:16 +0100
commit1c2b0d0b82a48bd323b46440f17b049090cabc79 (patch)
treec81fe3bd870aaadd6f13888f5efd14f817fe2a28 /type_decoder.c
parentce46beed20cef3262cdf8a921fdf7632f0356227 (diff)
downloadlibsigrokdecode-1c2b0d0b82a48bd323b46440f17b049090cabc79.tar.gz
libsigrokdecode-1c2b0d0b82a48bd323b46440f17b049090cabc79.zip
srd: Use PRIu64 for uint64_t values.
Using %d seems to silently work on Linux, but leads to a segfault on Windows/MinGW.
Diffstat (limited to 'type_decoder.c')
-rw-r--r--type_decoder.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/type_decoder.c b/type_decoder.c
index 6ed2787..bbf1f64 100644
--- a/type_decoder.c
+++ b/type_decoder.c
@@ -114,9 +114,9 @@ static PyObject *Decoder_put(PyObject *self, PyObject *args)
}
pdo = l->data;
- srd_spew("Instance %s put %d-%d %s on oid %d.", di->instance_id,
- start_sample, end_sample, OUTPUT_TYPES[pdo->output_type],
- output_id);
+ srd_spew("Instance %s put %" PRIu64 "-%" PRIu64 " %s on oid %d.",
+ di->instance_id, start_sample, end_sample,
+ OUTPUT_TYPES[pdo->output_type], output_id);
if (!(pdata = g_try_malloc0(sizeof(struct srd_proto_data))))
return NULL;