From: Miroslav Lichvar Date: Wed, 20 May 2020 10:14:59 +0000 (+0200) Subject: clientlog: add debug message for maximum number of records X-Git-Tag: 4.0-pre3~122 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=eedf61b3a22475ba27c2b7130a5efb1c14431c4c;p=thirdparty%2Fchrony.git clientlog: add debug message for maximum number of records --- diff --git a/clientlog.c b/clientlog.c index 72c477b3..4530235c 100644 --- a/clientlog.c +++ b/clientlog.c @@ -361,6 +361,7 @@ CLG_Initialise(void) table where two copies exist at the same time. */ max_slots = CNF_GetClientLogLimit() / (sizeof (Record) * SLOT_SIZE * 3 / 2); max_slots = CLAMP(MIN_SLOTS, max_slots, MAX_SLOTS); + DEBUG_LOG("Max records %u", 1U << ((int)round(log(max_slots) / log(2)) + SLOT_BITS)); slots = 0; records = NULL;