mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-04 09:55:06 -05:00
test: fix DEBUG_LOG use in unit tests
This was missing in commit f282856c72.
This commit is contained in:
@@ -47,7 +47,7 @@ test_unit(void)
|
||||
for (i = 0; i < 6; i++) {
|
||||
TEST_CHECK(ARR_GetSize(records) == 1);
|
||||
|
||||
DEBUG_LOG(0, "collision mod %u", 1U << i);
|
||||
DEBUG_LOG("collision mod %u", 1U << i);
|
||||
|
||||
for (j = 0; j < sizeof (addrs) / sizeof (addrs[0]); j++) {
|
||||
do {
|
||||
@@ -59,7 +59,7 @@ test_unit(void)
|
||||
if (!j)
|
||||
hash = UTI_IPToHash(&addrs[j].ip_addr);
|
||||
|
||||
DEBUG_LOG(0, "adding source %s hash %"PRIu32, UTI_IPToString(&addrs[j].ip_addr),
|
||||
DEBUG_LOG("adding source %s hash %"PRIu32, UTI_IPToString(&addrs[j].ip_addr),
|
||||
UTI_IPToHash(&addrs[j].ip_addr) % (1U << i));
|
||||
|
||||
NSR_AddSource(&addrs[j], random() % 2 ? NTP_SERVER : NTP_PEER, ¶ms);
|
||||
@@ -79,7 +79,7 @@ test_unit(void)
|
||||
}
|
||||
|
||||
for (j = 0; j < sizeof (addrs) / sizeof (addrs[0]); j++) {
|
||||
DEBUG_LOG(0, "removing source %s", UTI_IPToString(&addrs[j].ip_addr));
|
||||
DEBUG_LOG("removing source %s", UTI_IPToString(&addrs[j].ip_addr));
|
||||
NSR_RemoveSource(&addrs[j]);
|
||||
|
||||
for (k = 0; k < sizeof (addrs) / sizeof (addrs[0]); k++) {
|
||||
|
||||
Reference in New Issue
Block a user