netutils/dhcpd : trivial patch, add debug log on dhcp discover
authorJin-Seong Kim <jseong82.kim@samsung.com>
Wed, 24 May 2017 02:12:07 +0000 (11:12 +0900)
committerEunBong Song <eunb.song@samsung.com>
Tue, 11 Jul 2017 01:26:55 +0000 (10:26 +0900)
This commit is trivial patch, add debug log on dhcp discover
 - fix static analysis result, UNCHECKED_FUNC_RES.LIB.STRICT

Change-Id: If1b5673cafc6782f1cf6f6e477ae4d0104120463
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
apps/netutils/dhcpd/dhcpd.c

index c6035de..777e676 100644 (file)
@@ -1635,7 +1635,9 @@ int dhcpd_run(void *arg)
                switch (g_state.ds_optmsgtype) {
                case DHCPDISCOVER:
                        ndbg("DHCPDISCOVER\n");
-                       dhcpd_discover();
+                       if (dhcpd_discover() == ERROR) {
+                               ndbg("DHCPDISCOVER : Failed to send DHCP Discover, errno %d\n", errno);
+                       }
                        break;
 
                case DHCPREQUEST: