mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-04 09:05:06 -05:00
Fix printing refclocks and IPv6 sources in statistics log
This commit is contained in:
16
util.c
16
util.c
@@ -257,22 +257,6 @@ UTI_RefidToString(unsigned long ref_id)
|
||||
|
||||
/* ================================================== */
|
||||
|
||||
char *
|
||||
UTI_IPToDottedQuad(unsigned long ip)
|
||||
{
|
||||
unsigned long a, b, c, d;
|
||||
char *result;
|
||||
a = (ip>>24) & 0xff;
|
||||
b = (ip>>16) & 0xff;
|
||||
c = (ip>> 8) & 0xff;
|
||||
d = (ip>> 0) & 0xff;
|
||||
result = NEXT_BUFFER;
|
||||
snprintf(result, BUFFER_LENGTH, "%ld.%ld.%ld.%ld", a, b, c, d);
|
||||
return result;
|
||||
}
|
||||
|
||||
/* ================================================== */
|
||||
|
||||
char *
|
||||
UTI_IPToString(IPAddr *addr)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user