diff options
author | Paul Vinciguerra <pvinci@vinciconsulting.com> | 2019-10-30 20:07:15 -0400 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2019-12-17 18:37:18 +0000 |
commit | 336bccdfe693af756547d9d2696f164549f6dbca (patch) | |
tree | b9ab8bed4e0d01098fcad410db8c714028f16be4 /src/plugins/dhcp | |
parent | 5fb2278cb8badbbfe727acbdcaeda008a7fd2833 (diff) |
dhcp: client use local logger
Type: fix
Change-Id: I8383e04d01e0001c1cba176d2148b2c4c74e397a
Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
Diffstat (limited to 'src/plugins/dhcp')
-rw-r--r-- | src/plugins/dhcp/client.c | 13 |
1 files changed, 6 insertions, 7 deletions
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; } |