dedup

deduplicating backup program
git clone git://git.2f30.org/dedup
Log | Files | Refs | README | LICENSE

commit 2b72bf623b98eca60b2082451cee65817ae33b56
parent a8ed769271d099fc3a0dd4e85c867ec512aef97b
Author: sin <sin@2f30.org>
Date:   Thu,  7 Mar 2019 18:15:31 +0000

Use __func__ in error messages

Diffstat:
Mdedup.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/dedup.c b/dedup.c @@ -128,7 +128,7 @@ alloc_snap(void) snap = calloc(1, sizeof(*snap)); if (snap == NULL) - err(1, "calloc"); + err(1, "%s", __func__); return snap; } @@ -153,7 +153,7 @@ grow_snap(struct snapshot *snap, uint64_t nr_blk_descs) snap = realloc(snap, size); if (snap == NULL) - err(1, "realloc"); + err(1, "%s", __func__); return snap; } @@ -188,7 +188,7 @@ alloc_buf(size_t size) p = calloc(1, size); if (p == NULL) - err(1, "calloc"); + err(1, "%s", __func__); return p; }