dedup

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

commit a06219dadd20db4b17bc3e6121684cd7c638b6b0
parent 322ea54f119b06e9f37d3e694e6a62dcae8878a8
Author: sin <sin@2f30.org>
Date:   Thu,  7 Mar 2019 21:07:04 +0000

Use __func__ in error messages

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

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