X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=datastore.c;h=c4b82e67593e1e974e4b7d607c81b2029f042c77;hb=387014de6355545d95958ec2666836318c2b3902;hp=36bde28105e24d1ec5d4b3cd570ac23934b6c329;hpb=8ec95d22822ed5ebf4b6aeaff654608ad0225073;p=libsigrok.git diff --git a/datastore.c b/datastore.c index 36bde281..c4b82e67 100644 --- a/datastore.c +++ b/datastore.c @@ -21,8 +21,8 @@ #include #include #include -#include "sigrok.h" -#include "sigrok-internal.h" +#include "libsigrok.h" +#include "libsigrok-internal.h" static gpointer new_chunk(struct sr_datastore **ds); @@ -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? */ }