This is an automated email from the git hooks/post-receive script.
andyp pushed a commit to branch main
in repository gfs2-utils.
commit ae472caac242c2622e18a5bbc76e9801ca4fe01a
Author: Andrew Price <anprice(a)redhat.com>
AuthorDate: Thu Jan 6 11:08:02 2022 +0000
libgfs2: Use PRIu64 instead of casting uint64_t to unsigned long long
Signed-off-by: Andrew Price <anprice(a)redhat.com>
---
gfs2/libgfs2/buf.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/gfs2/libgfs2/buf.c b/gfs2/libgfs2/buf.c
index e317625f..cd5fba82 100644
--- a/gfs2/libgfs2/buf.c
+++ b/gfs2/libgfs2/buf.c
@@ -61,10 +61,9 @@ int __breadm(struct gfs2_sbd *sdp, struct gfs2_buffer_head **bhs,
size_t n,
ret = preadv(sdp->device_fd, iovbase, j, (block + i) * sdp->sd_bsize);
if (ret != size) {
- fprintf(stderr, "bad read: %s from %s:%d: block %llu (0x%llx) "
+ fprintf(stderr, "bad read: %s from %s:%d: block %"PRIu64" "
"count: %d size: %zd ret: %zd\n", strerror(errno),
- caller, line, (unsigned long long)block,
- (unsigned long long)block, j, size, ret);
+ caller, line, block, j, size, ret);
exit(-1);
}
i += j;
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
Show replies by date