summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2022-04-06 12:05:40 +0300
committerMichal Domonkos <mdomonko@redhat.com>2022-07-01 10:52:14 +0200
commit8087beaf6d19234c5536f51c496afa8f2f825e42 (patch)
treef528566f20aa14d093d06b611eb05a80cba4a450
parentfd523dd82a2db9ed56fd4ee3a892cdd1d3caae10 (diff)
downloadrpm-8087beaf6d19234c5536f51c496afa8f2f825e42.tar.gz
Only print rpmio descriptor statistics when io debugging is enabled
The stats aren't particularly interesting except for development and debugging purposes. Rather than change all the debug fprintf()'s in rpmio to rpmlog(), just change the stats to only get printed when --rpmiodebug is active like the rest of the io debug code. Fixes: #1987 (cherry picked from commit 4f34fa9623c4fada7f075fff0088ccb5b75e26d9)
-rw-r--r--rpmio/rpmio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpmio/rpmio.c b/rpmio/rpmio.c
index 80317d946..d0860a092 100644
--- a/rpmio/rpmio.c
+++ b/rpmio/rpmio.c
@@ -1418,7 +1418,7 @@ int Fclose(FD_t fd)
}
/* Debugging stats for compresed types */
- if ((_rpmio_debug || rpmIsDebug()) && fps->fdno == -1)
+ if (_rpmio_debug && fps->fdno == -1)
fdstat_print(fd, fps->io->ioname, stderr);
/* Leave freeing the last one after stats */