alexk / rpms / rpm

Forked from rpms/rpm 2 years ago
Clone
Blob Blame History Raw
From 15127592f8cc3221129f61b79319d88c7727bec3 Mon Sep 17 00:00:00 2001
From: Matthew Almond <malmond@fb.com>
Date: Sun, 31 Jan 2021 15:24:25 -0800
Subject: [PATCH 04/30] Fix printf formatting in reflink.c

There were some mismatches on field "sizes". This should eliminate the
error messages.
---
 plugins/reflink.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/reflink.c b/plugins/reflink.c
index 9eaa87094..513887604 100644
--- a/plugins/reflink.c
+++ b/plugins/reflink.c
@@ -316,7 +316,7 @@ static rpmRC reflink_fsm_file_pre(rpmPlugin plugin, rpmfi fi, const char* path,
 		return RPMRC_FAIL;
 	    }
 	    rpmlog(RPMLOG_DEBUG,
-	           _("reflink: Reflinking %lu bytes at %lu to %s orig size=%lu, file=%ld\n"),
+	           _("reflink: Reflinking %llu bytes at %llu to %s orig size=%ld, file=%lld\n"),
 		   fcr.src_length, fcr.src_offset, path, size, fcr.src_fd);
 	    rc = ioctl(dst, FICLONERANGE, &fcr);
 	    if (rc) {
-- 
2.35.1