projects
/
rtos
/
tinyara.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a137da
)
netutils/dhcpd : trivial patch, add debug log on dhcp discover
author
Jin-Seong Kim
<jseong82.kim@samsung.com>
Wed, 24 May 2017 02:12:07 +0000
(11:12 +0900)
committer
EunBong 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
patch
|
blob
|
history
diff --git
a/apps/netutils/dhcpd/dhcpd.c
b/apps/netutils/dhcpd/dhcpd.c
index
c6035de
..
777e676
100644
(file)
--- 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: