diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-06-17 11:54:52 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-06-17 11:54:52 +0200 |
commit | ac906fa85e61b4e34161709de777616f858bc945 (patch) | |
tree | 7b247714814fd9dcf3fd3dccf954521b29eef5a2 /networking/udhcp/options.c | |
parent | ed8982bfc0e9895fe707a5f6152cf184e06f2052 (diff) | |
download | busybox-w32-ac906fa85e61b4e34161709de777616f858bc945.tar.gz busybox-w32-ac906fa85e61b4e34161709de777616f858bc945.tar.bz2 busybox-w32-ac906fa85e61b4e34161709de777616f858bc945.zip |
udhcp: change UDHCP_DEBUG into int, make verbosity selectable with -v
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/udhcp/options.c')
-rw-r--r-- | networking/udhcp/options.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/udhcp/options.c b/networking/udhcp/options.c index 143a1fd1c..7b80e6b28 100644 --- a/networking/udhcp/options.c +++ b/networking/udhcp/options.c | |||
@@ -205,7 +205,7 @@ int FAST_FUNC add_option_string(uint8_t *optionptr, uint8_t *string) | |||
205 | string[OPT_CODE]); | 205 | string[OPT_CODE]); |
206 | return 0; | 206 | return 0; |
207 | } | 207 | } |
208 | DEBUG("adding option 0x%02x", string[OPT_CODE]); | 208 | log1("Adding option 0x%02x", string[OPT_CODE]); |
209 | memcpy(optionptr + end, string, string[OPT_LEN] + 2); | 209 | memcpy(optionptr + end, string, string[OPT_LEN] + 2); |
210 | optionptr[end + string[OPT_LEN] + 2] = DHCP_END; | 210 | optionptr[end + string[OPT_LEN] + 2] = DHCP_END; |
211 | return string[OPT_LEN] + 2; | 211 | return string[OPT_LEN] + 2; |