dcavalca / rpms / rpm

Forked from rpms/rpm 2 years ago
Clone
Blob Blame History Raw
From 7e50b3f4b2ebb963d1080a0a1469517ef81f780c Mon Sep 17 00:00:00 2001
From: Jes Sorensen <jsorensen@fb.com>
Date: Tue, 14 Apr 2020 12:08:09 -0400
Subject: [PATCH 25/33] rpmsignverity.c: Clean up debug logging

Put most logging in one place and avoid printing the same info twice.

Signed-off-by: Jes Sorensen <jsorensen@fb.com>
---
 sign/rpmsignverity.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/sign/rpmsignverity.c b/sign/rpmsignverity.c
index 2c7d21620..445e1197c 100644
--- a/sign/rpmsignverity.c
+++ b/sign/rpmsignverity.c
@@ -104,7 +104,6 @@ rpmRC rpmSignVerity(FD_t fd, Header sigh, Header h, char *key,
     rpmfi hfi = rpmfiNew(NULL, h, RPMTAG_BASENAMES, RPMFI_FLAGS_QUERY);
     rpmts ts = rpmtsCreate();
     struct rpmtd_s td;
-    rpm_loff_t file_size;
     off_t offset = Ftell(fd);
     const char *compr;
     char *rpmio_flags = NULL;
@@ -158,12 +157,8 @@ rpmRC rpmSignVerity(FD_t fd, Header sigh, Header h, char *key,
 	   nr_files, rpmfiFC(fi));
 
     while (rpmfiNext(fi) >= 0) {
-	file_size = rpmfiFSize(fi);
 	idx = rpmfiFX(fi);
 
-	rpmlog(RPMLOG_DEBUG, _("file: %s, (size %li, link %s, idx %i)\n"),
-	       rpmfiFN(fi), file_size, rpmfiFLink(fi), rpmfiFX(fi));
-
 	signatures[idx] = rpmVeritySignFile(fi, &sig_size, key, keypass, cert);
     }
 
-- 
2.27.0