diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2012-01-27 18:38:16 +0100 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2012-01-27 18:38:16 +0100 |
commit | 1c2b0d0b82a48bd323b46440f17b049090cabc79 (patch) | |
tree | c81fe3bd870aaadd6f13888f5efd14f817fe2a28 /type_decoder.c | |
parent | ce46beed20cef3262cdf8a921fdf7632f0356227 (diff) | |
download | libsigrokdecode-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.c | 6 |
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; |