From 407b1488d559cdcbc37b087ba62c18a95ce165db Mon Sep 17 00:00:00 2001 From: Ted Chen Date: Tue, 20 Sep 2022 10:21:08 +0800 Subject: nat: fix the wrong unformat type The unformat type for "%d" should be u32 or int. Type: fix Signed-off-by: Ted Chen Change-Id: I2483df6259ed8d3c7648c8db6345e5063ac8b57e --- src/plugins/nat/nat44-ed/nat44_ed_cli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/nat/nat44-ed/nat44_ed_cli.c') diff --git a/src/plugins/nat/nat44-ed/nat44_ed_cli.c b/src/plugins/nat/nat44-ed/nat44_ed_cli.c index cde3d733484..1eac3c323fe 100644 --- a/src/plugins/nat/nat44-ed/nat44_ed_cli.c +++ b/src/plugins/nat/nat44-ed/nat44_ed_cli.c @@ -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)) -- cgit 1.2.3-korg