More __func__ - 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 ff0b6cf31b3c75c7878ac06518674d46a6de6abb
DIR parent a06219dadd20db4b17bc3e6121684cd7c638b6b0
HTML Author: sin <sin@2f30.org>
Date: Thu, 7 Mar 2019 21:10:48 +0000
More __func__
Diffstat:
M types.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
DIR diff --git a/types.c b/types.c
@@ -13,7 +13,7 @@ read_snap_hdr(int fd, struct snapshot_hdr *hdr)
int n;
if (xread(fd, buf, sizeof(buf)) == 0)
- errx(1, "read_snap_hdr: unexpected EOF");
+ errx(1, "%s: unexpected EOF", __func__);
n = unpack(buf, "qqq",
&hdr->flags,
@@ -73,7 +73,7 @@ read_blk_hdr(int fd, struct blk_hdr *hdr)
int n;
if (xread(fd, buf, sizeof(buf)) == 0)
- errx(1, "read_blk_desc: unexpected EOF");
+ errx(1, "%s: unexpected EOF", __func__);
n = unpack(buf, "qq",
&hdr->flags,
@@ -104,7 +104,7 @@ read_blk_desc(int fd, struct blk_desc *desc)
int n;
if (xread(fd, buf, sizeof(buf)) == 0)
- errx(1, "read_blk_desc: unexpected EOF");
+ errx(1, "%s: unexpected EOF", __func__);
snprintf(fmt, sizeof(fmt), "'%dqq", MDSIZE);
n = unpack(buf, fmt,
@@ -140,7 +140,7 @@ read_snapshot(int fd, struct snapshot *snap)
int n;
if (xread(fd, buf, sizeof(buf)) == 0)
- errx(1, "read_blk_desc: unexpected EOF");
+ errx(1, "%s: unexpected EOF", __func__);
snprintf(fmt, sizeof(fmt), "q'%d'%dq", MSGSIZE, MDSIZE);
n = unpack(buf, fmt,