malmond / rpms / rpm

Forked from rpms/rpm 4 years ago
Clone

Blame SOURCES/0026-rpmsignverity.c-Clean-up-debug-logging.patch

657fb1
From e529459f2da13e33e112b9420dcf76f711179d6e Mon Sep 17 00:00:00 2001
657fb1
From: Jes Sorensen <jsorensen@fb.com>
657fb1
Date: Tue, 14 Apr 2020 12:08:09 -0400
657fb1
Subject: [PATCH 26/33] rpmsignverity.c: Clean up debug logging
657fb1
657fb1
Put most logging in one place and avoid printing the same info twice.
657fb1
657fb1
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
657fb1
---
657fb1
 sign/rpmsignverity.c | 5 -----
657fb1
 1 file changed, 5 deletions(-)
657fb1
657fb1
diff --git a/sign/rpmsignverity.c b/sign/rpmsignverity.c
657fb1
index 2c7d21620..445e1197c 100644
657fb1
--- a/sign/rpmsignverity.c
657fb1
+++ b/sign/rpmsignverity.c
657fb1
@@ -104,7 +104,6 @@ rpmRC rpmSignVerity(FD_t fd, Header sigh, Header h, char *key,
657fb1
     rpmfi hfi = rpmfiNew(NULL, h, RPMTAG_BASENAMES, RPMFI_FLAGS_QUERY);
657fb1
     rpmts ts = rpmtsCreate();
657fb1
     struct rpmtd_s td;
657fb1
-    rpm_loff_t file_size;
657fb1
     off_t offset = Ftell(fd);
657fb1
     const char *compr;
657fb1
     char *rpmio_flags = NULL;
657fb1
@@ -158,12 +157,8 @@ rpmRC rpmSignVerity(FD_t fd, Header sigh, Header h, char *key,
657fb1
 	   nr_files, rpmfiFC(fi));
657fb1
 
657fb1
     while (rpmfiNext(fi) >= 0) {
657fb1
-	file_size = rpmfiFSize(fi);
657fb1
 	idx = rpmfiFX(fi);
657fb1
 
657fb1
-	rpmlog(RPMLOG_DEBUG, _("file: %s, (size %li, link %s, idx %i)\n"),
657fb1
-	       rpmfiFN(fi), file_size, rpmfiFLink(fi), rpmfiFX(fi));
657fb1
-
657fb1
 	signatures[idx] = rpmVeritySignFile(fi, &sig_size, key, keypass, cert);
657fb1
     }
657fb1
 
657fb1
-- 
657fb1
2.13.5
657fb1