From 4b83db7400bb3c23ed3b2a4924438dd8a342973b Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Tue, 16 Apr 2024 12:18:46 +0200 Subject: Print errno error when bufalloc() fails --- lib/alloc/bufalloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/alloc/bufalloc.c b/lib/alloc/bufalloc.c index c688ab1..264f242 100644 --- a/lib/alloc/bufalloc.c +++ b/lib/alloc/bufalloc.c @@ -5,6 +5,6 @@ void * bufalloc(void *p, size_t n, size_t m) { if ((p = bufalloc_noterm(p, n, m)) == nullptr) - err(__func__); + err("%s:", __func__); return p; } -- cgit v1.2.3