From ae99655fc37d7fea3f4c33f32df1627b54b9ca62 Mon Sep 17 00:00:00 2001 From: Johan Kiviniemi Date: Fri, 5 Oct 2012 00:24:19 +0300 Subject: [PATCH] src/ntpd.c: Format refclock name and unit ID with %s-%u --- src/ntpd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ntpd.c b/src/ntpd.c index 15e60a5d..3e2b4ea5 100644 --- a/src/ntpd.c +++ b/src/ntpd.c @@ -859,7 +859,7 @@ static int ntpd_read (void) { /* The unit number is in the lowest byte. */ ssnprintf (peername, sizeof (peername), - "%s%i", + "%s-%u", refclock_names[refclock_id], ntohl (ptr->srcadr) & 0xFF); } -- 2.30.2