]> sigrok.org Git - libsigrokdecode.git/blobdiff - type_decoder.c
srd: removed stray malloc()
[libsigrokdecode.git] / type_decoder.c
index 6e34dff4f3c12d84ed39691ed1cf7d4d2d9f5c02..bbf1f64c2a8dfd6ec369f44dea84aba44148aac9 100644 (file)
@@ -97,7 +97,7 @@ static PyObject *Decoder_put(PyObject *self, PyObject *args)
 
        if (!(di = srd_instance_find_by_obj(NULL, self))) {
                /* Shouldn't happen. */
-               srd_dbg("srd: put(): self instance not found.");
+               srd_dbg("put(): self instance not found.");
                return NULL;
        }
 
@@ -114,8 +114,9 @@ static PyObject *Decoder_put(PyObject *self, PyObject *args)
        }
        pdo = l->data;
 
-       srd_spew("srd: 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;
@@ -141,8 +142,8 @@ static PyObject *Decoder_put(PyObject *self, PyObject *args)
                        next_di = l->data;
                        /* TODO: is this needed? */
                        Py_XINCREF(next_di->py_instance);
-                       srd_spew("srd: sending %d-%d to instance %s",
-                                       start_sample, end_sample, next_di->instance_id);
+                       srd_spew("Sending %d-%d to instance %s",
+                                start_sample, end_sample, next_di->instance_id);
                        if (!(py_res = PyObject_CallMethod(next_di->py_instance, "decode",
                                        "KKO", start_sample, end_sample, data))) {
                                catch_exception("calling %s decode(): ", next_di->instance_id);