udhcp: fix trivial compile error
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
8e5d83b6c1
commit
7a76eba1f6
@ -75,9 +75,9 @@ config FEATURE_UDHCP_PORT
|
|||||||
This feature is typically not needed.
|
This feature is typically not needed.
|
||||||
|
|
||||||
config UDHCP_DEBUG
|
config UDHCP_DEBUG
|
||||||
int "Maximum verbosity level for udhcp applets (0..3)"
|
int "Maximum verbosity level for udhcp applets (0..9)"
|
||||||
default 0
|
default 0
|
||||||
range 0 3
|
range 0 9
|
||||||
depends on APP_UDHCPD || APP_UDHCPC || APP_DHCPRELAY
|
depends on APP_UDHCPD || APP_UDHCPC || APP_DHCPRELAY
|
||||||
help
|
help
|
||||||
Verbosity can be increased with multiple -v options.
|
Verbosity can be increased with multiple -v options.
|
||||||
|
@ -36,7 +36,7 @@ void FAST_FUNC udhcp_init_header(struct dhcp_packet *packet, char type)
|
|||||||
add_simple_option(packet->options, DHCP_MESSAGE_TYPE, type);
|
add_simple_option(packet->options, DHCP_MESSAGE_TYPE, type);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined CONFIG_UDHCP_DEBUG && CONFIG_UDHCP_DEBUG >= 1
|
#if defined CONFIG_UDHCP_DEBUG && CONFIG_UDHCP_DEBUG >= 2
|
||||||
void FAST_FUNC udhcp_dump_packet(struct dhcp_packet *packet)
|
void FAST_FUNC udhcp_dump_packet(struct dhcp_packet *packet)
|
||||||
{
|
{
|
||||||
char buf[sizeof(packet->chaddr)*2 + 1];
|
char buf[sizeof(packet->chaddr)*2 + 1];
|
||||||
|
Loading…
Reference in New Issue
Block a user