Use __func__ in error messages - dedup - deduplicating backup program HTML git clone git://bitreich.org/dedup/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/dedup/ DIR Log DIR Files DIR Refs DIR Tags DIR README DIR LICENSE --- DIR commit 2b72bf623b98eca60b2082451cee65817ae33b56 DIR parent a8ed769271d099fc3a0dd4e85c867ec512aef97b HTML Author: sin <sin@2f30.org> Date: Thu, 7 Mar 2019 18:15:31 +0000 Use __func__ in error messages Diffstat: M dedup.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- DIR 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; }