commit ff0b6cf31b3c75c7878ac06518674d46a6de6abb
parent a06219dadd20db4b17bc3e6121684cd7c638b6b0
Author: sin <sin@2f30.org>
Date: Thu, 7 Mar 2019 21:10:48 +0000
More __func__
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
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,