alloc: log sizes on error

pull/1/head
Michael Santos 8 years ago
parent 7d4672a99a
commit 072e8542ae

@ -67,7 +67,7 @@ xmppipe_malloc(size_t size)
buf = malloc(size);
if (buf == NULL)
err(3, "xmppipe_malloc");
err(3, "xmppipe_malloc: %zu", size);
return buf;
}
@ -79,7 +79,7 @@ xmppipe_calloc(size_t nmemb, size_t size)
buf = calloc(nmemb, size);
if (buf == NULL)
err(3, "xmppipe_calloc");
err(3, "xmppipe_calloc: %zu/%zu", nmemb, size);
return buf;
}

Loading…
Cancel
Save