diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2022-04-06 12:05:40 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2022-04-06 12:09:17 +0300 |
commit | 4f34fa9623c4fada7f075fff0088ccb5b75e26d9 (patch) | |
tree | 43432754a8d689b5f9c193d0c33eac1c6ba8b80e | |
parent | f62b6d27cd741406a52a7e9c5b1d6f581dbd3af8 (diff) | |
download | rpm-4f34fa9623c4fada7f075fff0088ccb5b75e26d9.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
-rw-r--r-- | rpmio/rpmio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rpmio/rpmio.c b/rpmio/rpmio.c index fd1557346..0fc088aa1 100644 --- a/rpmio/rpmio.c +++ b/rpmio/rpmio.c @@ -1444,7 +1444,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 */ |