richardphibel / rpms / rpm

Forked from rpms/rpm 2 years ago
Clone
629b27
From 15127592f8cc3221129f61b79319d88c7727bec3 Mon Sep 17 00:00:00 2001
629b27
From: Matthew Almond <malmond@fb.com>
629b27
Date: Sun, 31 Jan 2021 15:24:25 -0800
629b27
Subject: [PATCH 04/30] Fix printf formatting in reflink.c
629b27
629b27
There were some mismatches on field "sizes". This should eliminate the
629b27
error messages.
629b27
---
629b27
 plugins/reflink.c | 2 +-
629b27
 1 file changed, 1 insertion(+), 1 deletion(-)
629b27
629b27
diff --git a/plugins/reflink.c b/plugins/reflink.c
629b27
index 9eaa87094..513887604 100644
629b27
--- a/plugins/reflink.c
629b27
+++ b/plugins/reflink.c
629b27
@@ -316,7 +316,7 @@ static rpmRC reflink_fsm_file_pre(rpmPlugin plugin, rpmfi fi, const char* path,
629b27
 		return RPMRC_FAIL;
629b27
 	    }
629b27
 	    rpmlog(RPMLOG_DEBUG,
629b27
-	           _("reflink: Reflinking %lu bytes at %lu to %s orig size=%lu, file=%ld\n"),
629b27
+	           _("reflink: Reflinking %llu bytes at %llu to %s orig size=%ld, file=%lld\n"),
629b27
 		   fcr.src_length, fcr.src_offset, path, size, fcr.src_fd);
629b27
 	    rc = ioctl(dst, FICLONERANGE, &fcr;;
629b27
 	    if (rc) {
629b27
-- 
629b27
2.35.1
629b27