]> sigrok.org Git - libsigrok.git/blobdiff - datastore.c
sr: ols: Fix incorrect comment.
[libsigrok.git] / datastore.c
index 36bde28105e24d1ec5d4b3cd570ac23934b6c329..f45353a0f08c8c17447cda583a96d48002ab3159 100644 (file)
@@ -232,7 +232,8 @@ static gpointer new_chunk(struct sr_datastore **ds)
 
        chunk = g_try_malloc0(DATASTORE_CHUNKSIZE * (*ds)->ds_unitsize);
        if (!chunk) {
-               sr_err("ds: %s: chunk malloc failed", __func__);
+               sr_err("ds: %s: chunk malloc failed (ds_unitsize was %u)",
+                      __func__, (*ds)->ds_unitsize);
                return NULL; /* TODO: SR_ERR_MALLOC later? */
        }