From: Uwe Hermann Date: Fri, 27 Jan 2012 17:38:16 +0000 (+0100) Subject: srd: Use PRIu64 for uint64_t values. X-Git-Tag: libsigrokdecode-0.1.0~90 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=1c2b0d0b82a48bd323b46440f17b049090cabc79;p=libsigrokdecode.git srd: Use PRIu64 for uint64_t values. Using %d seems to silently work on Linux, but leads to a segfault on Windows/MinGW. --- 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;