From 336bccdfe693af756547d9d2696f164549f6dbca Mon Sep 17 00:00:00 2001 From: Paul Vinciguerra Date: Wed, 30 Oct 2019 20:07:15 -0400 Subject: dhcp: client use local logger Type: fix Change-Id: I8383e04d01e0001c1cba176d2148b2c4c74e397a Signed-off-by: Paul Vinciguerra --- src/plugins/dhcp/client.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'src/plugins/dhcp') diff --git a/src/plugins/dhcp/client.c b/src/plugins/dhcp/client.c index f6205b6b0a0..441590cbcee 100644 --- a/src/plugins/dhcp/client.c +++ b/src/plugins/dhcp/client.c @@ -25,10 +25,10 @@ dhcp_client_main_t dhcp_client_main; static vlib_node_registration_t dhcp_client_process_node; #define DHCP_DBG(...) \ - vlib_log_debug (dhcp_logger, __VA_ARGS__); + vlib_log_debug (dhcp_logger, __VA_ARGS__) #define DHCP_INFO(...) \ - vlib_log_notice (dhcp_logger, __VA_ARGS__); + vlib_log_notice (dhcp_logger, __VA_ARGS__) #define foreach_dhcp_sent_packet_stat \ _(DISCOVER, "DHCP discover packets sent") \ @@ -1108,15 +1108,13 @@ dhcp_client_config (u32 is_add, vec_free (a->option_55_data); if (is_add) - clib_warning ("dhcp client already enabled on intf_idx %d", - sw_if_index); + DHCP_INFO ("dhcp client already enabled on intf_idx %d", sw_if_index); else - clib_warning ("dhcp client not enabled on on intf_idx %d", - sw_if_index); + DHCP_INFO ("not enabled on on intf_idx %d", sw_if_index); break; default: - clib_warning ("dhcp_client_add_del returned %d", rv); + DHCP_INFO ("dhcp_client_add_del returned %d", rv); } return rv; @@ -1257,6 +1255,7 @@ dhcp_client_init (vlib_main_t * vm) dcm->seed = (u32) clib_cpu_time_now (); dhcp_logger = vlib_log_register_class ("dhcp", "client"); + DHCP_INFO ("plugin initialized"); return 0; } -- cgit 1.2.3-korg