From a39f1dabfea3d427ac215f290cc81c52b86201d8 Mon Sep 17 00:00:00 2001 From: "Nicholas J. Kain" Date: Fri, 24 Feb 2017 08:39:27 -0500 Subject: [PATCH] Fix a typo in clock_gettime error path print that I somehow overlooked. --- src/arp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/arp.c b/src/arp.c index 3d1623d..6d1dc1b 100644 --- a/src/arp.c +++ b/src/arp.c @@ -493,7 +493,7 @@ static void quit_after_lease_handler(struct client_state_t cs[static 1]) { struct timespec res; if (clock_gettime(CLOCK_MONOTONIC, &res) < 0) { - suicide("%s: (%) clock_gettime failed: %s", + suicide("%s: (%s) clock_gettime failed: %s", client_config.interface, __func__, strerror(errno)); } time_t init_ts = res.tv_sec; @@ -503,7 +503,7 @@ static void quit_after_lease_handler(struct client_state_t cs[static 1]) log_warning("%s: (%s) Failed to send ARP announcement: %s", client_config.interface, __func__, strerror(errno)); if (clock_gettime(CLOCK_MONOTONIC, &res) < 0) { - suicide("%s: (%) clock_gettime failed: %s", + suicide("%s: (%s) clock_gettime failed: %s", client_config.interface, __func__, strerror(errno)); } if (res.tv_sec - init_ts > 60) break;