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 a06219dadd20db4b17bc3e6121684cd7c638b6b0
DIR parent 322ea54f119b06e9f37d3e694e6a62dcae8878a8
HTML Author: sin <sin@2f30.org>
Date: Thu, 7 Mar 2019 21:07:04 +0000
Use __func__ in error messages
Diffstat:
M dedup.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
DIR diff --git a/dedup.c b/dedup.c
@@ -216,9 +216,9 @@ read_blk(uint8_t *buf, struct blk_desc *blk_desc)
xlseek(sfd, blk_desc->offset, SEEK_SET);
n = xread(sfd, buf, blk_desc->size);
if (n == 0)
- errx(1, "read_blk: unexpected EOF");
+ errx(1, "%s: unexpected EOF", __func__);
if (n != blk_desc->size)
- errx(1, "read_blk: short read");
+ errx(1, "%s: short read", __func__);
}
static void