Fix invalid printf format usage 88/225088/1 accepted/tizen/unified/20200227.121055 submit/tizen/20200220.041614 submit/tizen/20200227.012332
authorJaehyun Kim <jeik01.kim@samsung.com>
Mon, 17 Feb 2020 08:38:44 +0000 (17:38 +0900)
committerJaehyun Kim <jeik01.kim@samsung.com>
Mon, 17 Feb 2020 08:38:44 +0000 (17:38 +0900)
Change-Id: Ic5ba58c9f84308cf4857b6feda762638e0cd59a9
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
src/main.c
src_ext/specific_dns.c

index c883d78..b567acb 100644 (file)
@@ -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
index e3e864d..88febb0 100644 (file)
@@ -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 {