nat: fix the wrong unformat type
The unformat type for "%d" should be u32 or int. Type: fix Signed-off-by: Ted Chen <znscnchen@gmail.com> Change-Id: I2483df6259ed8d3c7648c8db6345e5063ac8b57e
This commit is contained in:
@ -180,7 +180,7 @@ snat_set_log_level_command_fn (vlib_main_t * vm,
|
||||
{
|
||||
unformat_input_t _line_input, *line_input = &_line_input;
|
||||
snat_main_t *sm = &snat_main;
|
||||
u8 log_level = NAT_LOG_NONE;
|
||||
u32 log_level = NAT_LOG_NONE;
|
||||
clib_error_t *error = 0;
|
||||
|
||||
if (!unformat_user (input, unformat_line_input, line_input))
|
||||
|
@ -338,7 +338,7 @@ nat44_ei_set_log_level_command_fn (vlib_main_t *vm, unformat_input_t *input,
|
||||
{
|
||||
unformat_input_t _line_input, *line_input = &_line_input;
|
||||
nat44_ei_main_t *nm = &nat44_ei_main;
|
||||
u8 log_level = NAT_LOG_NONE;
|
||||
u32 log_level = NAT_LOG_NONE;
|
||||
clib_error_t *error = 0;
|
||||
|
||||
if (!unformat_user (input, unformat_line_input, line_input))
|
||||
|
Reference in New Issue
Block a user