From 884f42f51a6602f5e1cd083bc83e938d7274db71 Mon Sep 17 00:00:00 2001 From: Jin-Seong Kim Date: Wed, 24 May 2017 11:12:07 +0900 Subject: [PATCH] netutils/dhcpd : trivial patch, add debug log on dhcp discover 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 --- apps/netutils/dhcpd/dhcpd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/netutils/dhcpd/dhcpd.c b/apps/netutils/dhcpd/dhcpd.c index c6035de..777e676 100644 --- a/apps/netutils/dhcpd/dhcpd.c +++ b/apps/netutils/dhcpd/dhcpd.c @@ -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: -- 2.7.4