tMore __func__ - dedup - deduplicating backup program
(HTM) git clone git://git.z3bra.org/dedup.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit ff0b6cf31b3c75c7878ac06518674d46a6de6abb
(DIR) parent a06219dadd20db4b17bc3e6121684cd7c638b6b0
(HTM) 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
t@@ -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,
t@@ -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,
t@@ -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,
t@@ -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,