mirror of
https://github.com/SELinuxProject/selinux
synced 2025-02-17 10:06:51 +00:00
libselinux: disable filespec hash table stats on non-debug builds
Disable generating filespec hash table stats on non-debug builds, as they are not useful information for users and cause fixfiles check to produce noisy output. Reported-by: Alan Jenkins <alan.christopher.jenkins@gmail.com> Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
This commit is contained in:
parent
bd4ffeb435
commit
b88c4a4707
@ -487,6 +487,7 @@ oom:
|
|||||||
/*
|
/*
|
||||||
* Evaluate the association hash table distribution.
|
* Evaluate the association hash table distribution.
|
||||||
*/
|
*/
|
||||||
|
#ifdef DEBUG
|
||||||
static void filespec_eval(void)
|
static void filespec_eval(void)
|
||||||
{
|
{
|
||||||
file_spec_t *fl;
|
file_spec_t *fl;
|
||||||
@ -513,6 +514,11 @@ static void filespec_eval(void)
|
|||||||
"filespec hash table stats: %d elements, %d/%d buckets used, longest chain length %d\n",
|
"filespec hash table stats: %d elements, %d/%d buckets used, longest chain length %d\n",
|
||||||
nel, used, HASH_BUCKETS, longest);
|
nel, used, HASH_BUCKETS, longest);
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
static void filespec_eval(void)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Destroy the association hash table.
|
* Destroy the association hash table.
|
||||||
|
Loading…
Reference in New Issue
Block a user