[Rpm-maint] [PATCH] Fix rpmlog warning in lzopen_internal from too big length specifier.

Mark Wielaard mark at klomp.org
Thu Oct 5 20:55:38 UTC 2017


memlimit is defined as uint32_t, but was printed as %lu.
Change to %u to avoid a gcc warning.

Signed-off-by: Mark Wielaard <mark at klomp.org>
---
 rpmio/rpmio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rpmio/rpmio.c b/rpmio/rpmio.c
index d8b8840..c7cbc32 100644
--- a/rpmio/rpmio.c
+++ b/rpmio/rpmio.c
@@ -839,7 +839,7 @@ static LZFILE *lzopen_internal(const char *mode, int fd, int xz)
 
 		    if (threads != (int)mt_options.threads)
 			rpmlog(RPMLOG_NOTICE,
-				"XZ: Adjusted the number of threads from %d to %d to not exceed the memory usage limit of %lu bytes",
+				"XZ: Adjusted the number of threads from %d to %d to not exceed the memory usage limit of %u bytes",
 				threads, mt_options.threads, memlimit);
 		}
 #endif
-- 
1.8.3.1



More information about the Rpm-maint mailing list