From e439b289ea12321c98d684a53b65dd927f89e432 Mon Sep 17 00:00:00 2001 From: Jaehyun Kim Date: Mon, 17 Feb 2020 17:38:44 +0900 Subject: [PATCH] Fix invalid printf format usage Change-Id: Ic5ba58c9f84308cf4857b6feda762638e0cd59a9 Signed-off-by: Jaehyun Kim --- src/main.c | 5 +---- src_ext/specific_dns.c | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/main.c b/src/main.c index c883d78..b567acb 100644 --- a/src/main.c +++ b/src/main.c @@ -183,10 +183,7 @@ static gboolean _method_start(GDBusInterfaceSkeleton *di, CLATD_LOG(LOG_INFO, "Starting clat version %s on %s netid=%s mark=%s", CLATD_VERSION, uplink_interface,net_id_str ? net_id_str : "(none)", - mark_str ? mark_str : "(none)", - plat_prefix ? plat_prefix : "(none)", - v4_addr ? v4_addr : "(none)", - v6_addr ? v6_addr : "(none)"); + mark_str ? mark_str : "(none)"); if (!has_specific_nameserver()) // run under a regular user but keep needed capabilities diff --git a/src_ext/specific_dns.c b/src_ext/specific_dns.c index e3e864d..88febb0 100644 --- a/src_ext/specific_dns.c +++ b/src_ext/specific_dns.c @@ -279,7 +279,7 @@ static int __get_local_ip_str(char *if_name, char **ip_str) strncpy(ifr.ifr_name, if_name, IFNAMSIZ); ifr.ifr_name[IFNAMSIZ - 1] = 0; - CLATD_LOG(LOG_INFO, "ifr_name %", ifr.ifr_name); + CLATD_LOG(LOG_INFO, "ifr_name %s", ifr.ifr_name); if (ioctl(sockfd, SIOCGIFADDR, &ifr) < 0) { CLATD_LOG(LOG_ERROR, "Failed to get if addr"); } else { -- 2.7.4